The drawable class for the chemical structure. This is used for grouping and rendering the meshes for the internal structure of the molecule.
More...
|
void | draw (const Matrix4 &transformationMatrix, SceneGraph::Camera3D &camera) override |
| Draws the mesh with the given transformation matrix and camera.
|
|
The drawable class for the chemical structure. This is used for grouping and rendering the meshes for the internal structure of the molecule.
◆ ChemStructureDrawable()
ChemStructureDrawable::ChemStructureDrawable |
( |
Object3D & |
object, |
|
|
ChemStructureShader & |
shader, |
|
|
GL::Mesh & |
mesh, |
|
|
SceneGraph::DrawableGroup3D & |
group |
|
) |
| |
|
inlineexplicit |
Creates a new drawable with the given shader, mesh and group.
- Parameters
-
object | The transformation object in the scenegraph |
shader | The shader with which to mrender this drawable |
mesh | The mesh representing this drawable |
group | The rendering group this drawable belongs to |
◆ draw()
void ChemStructureDrawable::draw |
( |
const Matrix4 & |
transformationMatrix, |
|
|
SceneGraph::Camera3D & |
camera |
|
) |
| |
|
overrideprivate |
Draws the mesh with the given transformation matrix and camera.
- Parameters
-
transformationMatrix | The view matrix (cameraMatrix * modelMatrix) for this drawable |
camera | The camera with which to render this drawable. The camera transformation is already represented in transformationMatrix |
◆ _mesh
GL::Mesh& ChemStructureDrawable::_mesh |
|
private |
◆ _shader
The documentation for this class was generated from the following file: