All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Attributes | List of all members
Eegeo::Rendering::Mesh Class Reference

A renderable mesh. More...

#include <Mesh.h>

Inheritance diagram for Eegeo::Rendering::Mesh:
Eegeo::NonCopyable Eegeo::Rendering::TriStripMesh

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::VertexLayoutGetVertexLayout () 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::VertexLayoutm_vertexLayout
 
Rendering::GlBufferPoolm_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
 
NonCopyableoperator= (const NonCopyable &)=delete
 

Detailed Description

A renderable mesh.

This class holds the geometry for a renderable mesh along with the additional information required to render that mesh.


The documentation for this class was generated from the following files: