![]() |
LibCarna Version 3.4.0
|
Implements MeshBase class for particular VertexType and IndexType. More...
#include <Mesh.hpp>
Inheritance diagram for LibCarna::base::Mesh< VertexType, IndexType >:
Collaboration diagram for LibCarna::base::Mesh< VertexType, IndexType >: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) | |
Public Member Functions inherited from LibCarna::base::MeshBase | |
| MeshBase (const VertexAttributes &va, Association< VertexBufferBase > *vertexBuffer, Association< IndexBufferBase > *indexBuffer) | |
| virtual | ~MeshBase () noexcept(false) |
| Deletes. | |
| void | bind () const |
| Binds the vertex array object. | |
| void | render () const |
| Renders the mesh. | |
| 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 | |
Public Attributes inherited from LibCarna::base::MeshBase | |
| 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. |
| typedef IndexType LibCarna::base::Mesh< VertexType, IndexType >::Index |
| typedef VertexType LibCarna::base::Mesh< VertexType, IndexType >::Vertex |
| LibCarna::base::Mesh< VertexType, IndexType >::Mesh | ( | Association< VertexBufferBase > * | vertexBuffer, |
| Association< IndexBufferBase > * | indexBuffer | ||
| ) |
Creates new mesh. It is only valid within the current OpenGL context.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen