#include <VertexBuffer.h>
Public Member Functions | |
| IDirect3DVertexBuffer9 * | GetInterface () |
| const IDirect3DVertexBuffer9 * | GetInterface () const |
| unsigned | GetCount () const |
| unsigned | GetStride () const |
| unsigned | GetLength () const |
| unsigned | GetFormat () const |
| D3DPOOL | GetPool () const |
| unsigned | GetUsage () const |
| bool | Fill (const void *vertices, unsigned first=0, unsigned count=0) |
Public Attributes | |
| friend | MeshManager |
| bool xl7::direct3d::meshes::VertexBuffer::Fill | ( | const void * | vertices, | |
| unsigned | first = 0, |
|||
| unsigned | count = 0 | |||
| ) |
Fills the vertex buffer with the given vertices. The vertices are written to the vertex buffer starting at the given offset (first). If the given number of vertices (count) then would exceed the capacity of the vertex buffer, it will be cropped.
| unsigned xl7::direct3d::meshes::VertexBuffer::GetCount | ( | ) | const [inline] |
Returns the number of vertices within this vertex buffer.
| unsigned xl7::direct3d::meshes::VertexBuffer::GetFormat | ( | ) | const [inline] |
Returns the flexible vertex format of this vertex buffer.
| const IDirect3DVertexBuffer9* xl7::direct3d::meshes::VertexBuffer::GetInterface | ( | ) | const [inline] |
Returns the Direct3D vertex buffer interface.
| IDirect3DVertexBuffer9* xl7::direct3d::meshes::VertexBuffer::GetInterface | ( | ) | [inline] |
Returns the Direct3D vertex buffer interface.
| unsigned xl7::direct3d::meshes::VertexBuffer::GetLength | ( | ) | const [inline] |
Returns the length (in bytes) of this vertex buffer.
| D3DPOOL xl7::direct3d::meshes::VertexBuffer::GetPool | ( | ) | const [inline] |
Returns the memory class of this vertex buffer.
| unsigned xl7::direct3d::meshes::VertexBuffer::GetStride | ( | ) | const [inline] |
Returns the size of each vertex (in bytes).
| unsigned xl7::direct3d::meshes::VertexBuffer::GetUsage | ( | ) | const [inline] |
Returns the usage of this vertex buffer.
1.7.1