D3D9::IndexBuffer Class Reference

Index buffer. More...

#include <dx9_wrap.h>

Collaboration diagram for D3D9::IndexBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IndexBuffer (Device &m_device, int index_count, int index_size=2, D3DFORMAT index_format=D3DFMT_INDEX16)
 Create index buffer resource.

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 index buffer as active index buffer on attached render device.


Detailed Description

Index buffer.


Constructor & Destructor Documentation

D3D9::IndexBuffer::IndexBuffer Device m_device,
int  index_count,
int  index_size = 2,
D3DFORMAT  index_format = D3DFMT_INDEX16
 

Create index buffer resource.


Member Function Documentation

int D3D9::IndexBuffer::get_capacity  )  const [inline]
 

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

int D3D9::IndexBuffer::get_index_size  )  const [inline]
 

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

D3DFORMAT D3D9::IndexBuffer::get_index_format  )  const [inline]
 

Retrieve index format code.

void D3D9::IndexBuffer::select  ) 
 

Select this index buffer as active index buffer on attached render device.


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