D3D9::IndexArray< _index_data_t, _index_caps > Class Template Reference

IndexArray may be taken as "improved", type-safe version of D3D9::IndexBuffer. More...

#include <dx9_wrap.h>

Collaboration diagram for D3D9::IndexArray< _index_data_t, _index_caps >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IndexArray (Device &n_device, int index_count)
 Create D3D9::IndexArray instance.

int get_capacity () const
 Retrieve how many indices this index buffer can hold (capacity).

int get_index_size () const
 Retrieve size (in bytes) of single index instance stored in the buffer.

D3DFORMAT get_index_format () const
 Retrieve index format code.

void select ()
 Select this IndexArray as active on attached render device.


Detailed Description

template<typename _index_data_t, D3DFORMAT _index_caps>
class D3D9::IndexArray< _index_data_t, _index_caps >

IndexArray may be taken as "improved", type-safe version of D3D9::IndexBuffer.

Todo:
Develop good interface and implement both IndexArray and IndexArray::LockedArea classes, and TEST THEM.


Constructor & Destructor Documentation

template<typename _index_data_t, D3DFORMAT _index_caps>
D3D9::IndexArray< _index_data_t, _index_caps >::IndexArray Device n_device,
int  index_count
[inline]
 

Create D3D9::IndexArray instance.

Type of individual elements is fixed at runtime, so you only need to specify count of indices to allocate the memory for.


Member Function Documentation

template<typename _index_data_t, D3DFORMAT _index_caps>
int D3D9::IndexArray< _index_data_t, _index_caps >::get_capacity  )  const [inline]
 

Retrieve how many indices this index buffer can hold (capacity).

template<typename _index_data_t, D3DFORMAT _index_caps>
int D3D9::IndexArray< _index_data_t, _index_caps >::get_index_size  )  const [inline]
 

Retrieve size (in bytes) of single index instance stored in the buffer.

template<typename _index_data_t, D3DFORMAT _index_caps>
D3DFORMAT D3D9::IndexArray< _index_data_t, _index_caps >::get_index_format  )  const [inline]
 

Retrieve index format code.

template<typename _index_data_t, D3DFORMAT _index_caps>
void D3D9::IndexArray< _index_data_t, _index_caps >::select  )  [inline]
 

Select this IndexArray as active on attached render device.


The documentation for this class was generated from the following file:
Generated on Sun May 1 17:34:24 2005 for RealityStrike Game Engine API by doxygen 1.3.6