Carna
Version 3.0.1
|
Implements MeshBase class for particular VertexType and IndexType. More...
#include <Mesh.h>
Public Types | |
typedef VertexType | Vertex |
Holds the element type of the vertex buffer. | |
typedef IndexType | Index |
Holds the element type of the index buffer. | |
Public Member Functions | |
Mesh (Association< VertexBufferBase > *vertexBuffer, Association< IndexBufferBase > *indexBuffer) | |
![]() | |
MeshBase (const VertexAttributes &va, Association< VertexBufferBase > *vertexBuffer, Association< IndexBufferBase > *indexBuffer) | |
virtual | ~MeshBase () |
Deletes. More... | |
void | bind () const |
Binds the vertex array object. More... | |
void | render () const |
Renders the mesh. More... | |
const VertexBufferBase & | vertexBuffer () const |
References the mesh's vertex buffer. | |
const IndexBufferBase & | indexBuffer () const |
References the mesh's index buffer. | |
VertexBufferBase & | vertexBuffer () |
References the mesh's vertex buffer. | |
IndexBufferBase & | indexBuffer () |
References the mesh's index buffer. | |
Additional Inherited Members | |
![]() | |
const unsigned int | id |
Holds the ID of the OpenGL vertex array object. | |
const GLContext & | glContext |
References the OpenGL context this mesh is valid within. | |
Implements MeshBase class for particular VertexType and IndexType.
VertexType | specifies the vertex buffer format. |
VertexType | specifies the index buffer format. |
Carna::base::Mesh< VertexType, IndexType >::Mesh | ( | Association< VertexBufferBase > * | vertexBuffer, |
Association< IndexBufferBase > * | indexBuffer | ||
) |
Creates new mesh. It is only valid within the current OpenGL context.
Documentation generated by Doxygen