D3D9::Texture Class Reference

Texture -- sequence of Surfaces, usually each representing single mipmap level of the texture. More...

#include <dx9_wrap.h>

Inheritance diagram for D3D9::Texture:

Inheritance graph
[legend]
Collaboration diagram for D3D9::Texture:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Texture (Device &n_device, int width, int height, int mip_levels, D3DFORMAT format)
 Create texture resource by allocating memory for it.

 Texture (Device &n_device, const char *fname)
 Create texture resource by loading it from file.

void select (int stage_index)
 Make the texture active.


Protected Member Functions

 Texture (Device &n_device, int width, int height, int mip_levels, D3DFORMAT format, DWORD usage)
 Protected constructor used only in child classes, allows to modify the USAGE flag on texture creation.


Detailed Description

Texture -- sequence of Surfaces, usually each representing single mipmap level of the texture.

Texture can be selected to be active in one of available texture stages (see select() method).

Todo:
Add all possible ways to construct the texture.


Constructor & Destructor Documentation

D3D9::Texture::Texture Device n_device,
int  width,
int  height,
int  mip_levels,
D3DFORMAT  format,
DWORD  usage
[protected]
 

Protected constructor used only in child classes, allows to modify the USAGE flag on texture creation.

D3D9::Texture::Texture Device n_device,
int  width,
int  height,
int  mip_levels,
D3DFORMAT  format
 

Create texture resource by allocating memory for it.

D3D9::Texture::Texture Device n_device,
const char *  fname
 

Create texture resource by loading it from file.


Member Function Documentation

void D3D9::Texture::select int  stage_index  ) 
 

Make the texture active.


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