A buffer mesh consists of a number of sub meshes where each sub mesh references a vertex buffer stream and an index buffer via shared pointers. Each sub mesh holds a number of primitive groups, such as line lists or triangle strips, that actually describe the geometry that makes up the mesh. Additionally, a buffer mesh holds an optional global state set which will be applied before rendering any sub mesh.
|
Public Member Functions |
| boost::shared_ptr< RenderContext > | GetRenderContext () const |
| | Returns the render context used by this buffer mesh.
|
| void | SetStateSet (const boost::shared_ptr< StateSet > &pStateSet) |
| | Sets the global state set of this buffer mesh.
|
| const boost::shared_ptr< StateSet > & | GetStateSet () const |
| | Returns the global state set of this buffer mesh.
|
| void | AddSubMesh (const SubMesh &subMesh) |
| | Adds a new sub mesh to this buffer mesh.
|
| template<typename InputIteratorT> |
| void | AddSubMeshes (InputIteratorT itFirst, InputIteratorT itLast) |
| | Adds a number of new sub meshes to this buffer mesh.
|
| void | AddSubMeshes (size_t count) |
| | Adds a number of new empty sub meshes to this buffer mesh. Use BufferMesh::GetSubMesh to access and fill the newly added sub meshes.
|
| void | ReplaceSubMesh (size_t index, const SubMesh &subMesh) |
| | Replaces a specific sub mesh of this buffer mesh with the given sub mesh.
|
| size_t | GetSubMeshCount () const |
| | Returns the number of sub meshes in this object.
|
| const SubMesh & | GetSubMesh (size_t index) const |
| | Returns a specific sub mesh of this buffer mesh.
|
| SubMesh & | GetSubMesh (size_t index) |
| | Returns a reference to a specific sub mesh of this buffer mesh.
|
| const std::vector< SubMesh > & | GetSubMeshes () const |
| | Returns all sub meshes in this buffer mesh.
|
| template<typename OutputIteratorT> |
| void | GetSubMeshes (OutputIteratorT it) const |
| | Returns all sub meshes in this buffer mesh.
|
| void | Render () |
| | Renders this mesh.
|
Static Public Member Functions |
static boost::shared_ptr<
BufferMesh > | Create (const boost::shared_ptr< RenderContext > &pContext, const boost::shared_ptr< StateSet > &pStateSet=boost::shared_ptr< StateSet >(), size_t initialSubMeshCount=0) |
| | Constructs a new buffer mesh that uses the given render context and global state set.
|
Classes |
| class | PrimitiveGroup |
| | This class represents a group of primitives of a buffer mesh. More...
|
| class | SubMesh |
| | The sub mesh class which represents a part of a buffer mesh. More...
|