![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Classes | |
| class | DrawObject |
| This class provides functionality for efficient, subsequent drawing of a mesh. The buffers of the mesh will be bound once this class is instantiated. More... | |
Public Member Functions | |
| virtual void | draw () override |
| draws the mesh using its mesh info. If index buffers are present, the mesh will be rendered with glDrawElements() using those index buffers and the associated draw modes. Otherwise, the entire mesh is rendered using glDrawArrays with the default draw mode returned by Mesh::getDefaultMeshInfo(). | |
| virtual void | draw (DrawMode drawMode) |
| draws the mesh with the specified draw mode. If index buffers are present, the mesh will be rendered with glDrawElements() using those index buffers. Otherwise, the entire mesh is rendered using glDrawArrays. | |
| DrawObject | getDrawObject () const |
| virtual const Mesh * | getMesh () const override |
| MeshDrawerGL (const Mesh *mesh) | |
| MeshDrawerGL (const MeshDrawerGL &rhs)=default | |
| MeshDrawerGL (MeshDrawerGL &&other)=default | |
| MeshDrawerGL & | operator= (const MeshDrawerGL &other)=default |
| MeshDrawerGL & | operator= (MeshDrawerGL &&rhs)=default |
Static Public Member Functions | |
| static DrawMode | getDrawMode (DrawType, ConnectivityType) |
| static DrawMode | getDrawMode (Mesh::MeshInfo meshInfo) |
| static DrawObject | getDrawObject (const Mesh *mesh) |
| static GLenum | getGLDrawMode (DrawMode) |
| static GLenum | getGLDrawMode (Mesh::MeshInfo meshInfo) |
Protected Member Functions | |
| virtual bool | canDraw (const Mesh *geom) const override |
| virtual MeshDrawer * | create (const Mesh *geom) const override |
Protected Attributes | |
| const Mesh * | meshToDraw_ |
|
inlineoverrideprotectedvirtual |
Determine if the renderer can render geometry.
| geom | The Geometry to draw |
Implements inviwo::MeshDrawer.
|
inlineoverrideprotectedvirtual |
Return a new object of the derived class.
| geom | The geometry to render. This will always be of a type that canDraw return true for. |
Implements inviwo::MeshDrawer.
|
overridevirtual |
draws the mesh using its mesh info. If index buffers are present, the mesh will be rendered with glDrawElements() using those index buffers and the associated draw modes. Otherwise, the entire mesh is rendered using glDrawArrays with the default draw mode returned by Mesh::getDefaultMeshInfo().
Implements inviwo::MeshDrawer.
|
virtual |
draws the mesh with the specified draw mode. If index buffers are present, the mesh will be rendered with glDrawElements() using those index buffers. Otherwise, the entire mesh is rendered using glDrawArrays.
| drawMode | draw mode used to render the mesh |
|
inlineoverridevirtual |