#include <Mesh.h>
Public Member Functions | |
| Mesh (void) | |
| virtual | ~Mesh (void) |
| const VertexBuffer * | GetVertexBuffer () const |
| VertexBuffer * | GetVertexBuffer () |
| const IndexBuffer * | GetIndexBuffer () const |
| IndexBuffer * | GetIndexBuffer () |
| bool | Create (unsigned vertex_count, unsigned vertex_stride, unsigned fvf, unsigned index_count, D3DFORMAT index_format=D3DFMT_INDEX32, unsigned vertex_usage=D3DUSAGE_WRITEONLY, D3DPOOL vertex_pool=D3DPOOL_MANAGED, unsigned index_usage=D3DUSAGE_WRITEONLY, D3DPOOL index_pool=D3DPOOL_MANAGED) |
| void | Release () |
The (base) class for meshes.
| xl7::direct3d::meshes::Mesh::Mesh | ( | void | ) |
Default constructor.
| xl7::direct3d::meshes::Mesh::~Mesh | ( | void | ) | [virtual] |
Destructor.
| bool xl7::direct3d::meshes::Mesh::Create | ( | unsigned | vertex_count, | |
| unsigned | vertex_stride, | |||
| unsigned | fvf, | |||
| unsigned | index_count, | |||
| D3DFORMAT | index_format = D3DFMT_INDEX32, |
|||
| unsigned | vertex_usage = D3DUSAGE_WRITEONLY, |
|||
| D3DPOOL | vertex_pool = D3DPOOL_MANAGED, |
|||
| unsigned | index_usage = D3DUSAGE_WRITEONLY, |
|||
| D3DPOOL | index_pool = D3DPOOL_MANAGED | |||
| ) |
Creates the mesh by acquiring a new vertex buffer and a new index buffer.
| const IndexBuffer* xl7::direct3d::meshes::Mesh::GetIndexBuffer | ( | ) | const [inline] |
Returns the index buffer containing the indices.
| IndexBuffer* xl7::direct3d::meshes::Mesh::GetIndexBuffer | ( | ) | [inline] |
Returns the index buffer containing the indices.
| VertexBuffer* xl7::direct3d::meshes::Mesh::GetVertexBuffer | ( | ) | [inline] |
Returns the vertex buffer containing the vertices.
| const VertexBuffer* xl7::direct3d::meshes::Mesh::GetVertexBuffer | ( | ) | const [inline] |
Returns the vertex buffer containing the vertices.
| void xl7::direct3d::meshes::Mesh::Release | ( | ) |
Releases the resources (vertex and index buffers) of this mesh.
1.7.1