A renderable mesh. More...
#include <Mesh.h>
Public Member Functions | |
Mesh (const VertexLayouts::VertexLayout &vertexLayout, Rendering::GlBufferPool &glBufferPool, const void *pVertexData, size_t vertexDataSize, const void *pIndexData, size_t indexDataSize, u32 numOfIndices, const std::string &meshId) | |
const VertexLayouts::VertexLayout & | GetVertexLayout () const |
u32 | GetNumOfIndices () const |
TVertexBufferId | GetVertexBuffer () const |
TIndexBufferId | GetIndexBuffer () const |
void | BindVertexBuffers (const VertexLayouts::VertexBinding *pVertexBinding, Rendering::GLState &glState) |
void | UnbindVertexBuffers (Rendering::GLState &glState) |
void | UnbindVertexBuffers (const VertexLayouts::VertexBinding *pVertexBinding, Rendering::GLState &glState) |
const std::string & | GetMeshId () const |
Protected Attributes | |
const VertexLayouts::VertexLayout & | m_vertexLayout |
Rendering::GlBufferPool & | m_glBufferPool |
TVertexBufferId | m_glVertexBuffer |
TIndexBufferId | m_glIndexBuffer |
const std::string | m_meshId |
u32 | m_numOfIndices |
Additional Inherited Members | |
Protected Member Functions inherited from Eegeo::NonCopyable | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
A renderable mesh.
This class holds the geometry for a renderable mesh along with the additional information required to render that mesh.