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