Main Page   Class Hierarchy   Compound List   File List   Compound Members  

D3DTextureManager Class Reference

#include <D3DTextureManager.h>

Inheritance diagram for D3DTextureManager:

textureManagerInterface List of all members.

Public Member Functions

 D3DTextureManager (LPDIRECT3DDEVICE8)
 ~D3DTextureManager ()
HRESULT addTexture (std::string strFilename, const int value)
void setTexture (const int value)

Protected Attributes

LPDIRECT3DDEVICE8 m_lpD3DDevice
std::map< int, LPDIRECT3DTEXTURE8 > m_oTextures

Detailed Description

This object is used to manage and store our Textures for our small DLL rendering system for our Direct3D8 implementation. For now it doesn't really do much besides load and create texture objects, but the flexibility is there to add more features if needed


Constructor & Destructor Documentation

D3DTextureManager::D3DTextureManager LPDIRECT3DDEVICE8   ) 
 

Constructor

Parameters:
LPDIRECT3DDEVICE8 - our valid Direct3DDevice8 interface

D3DTextureManager::~D3DTextureManager  ) 
 

Destructor


Member Function Documentation

HRESULT D3DTextureManager::addTexture std::string  strFilename,
const int  value
[virtual]
 

version 1.3 This method is responsible for adding a new texture to our rendering engine. We won't do anything that fancy but store it in a std::map object

Parameters:
std::string - our texture filename
const int - the texture identifier
Returns:
HRESULT - SUCCEEDED if we created it ok, FAILED otherwise

Implements textureManagerInterface.

void D3DTextureManager::setTexture const int  value  )  [virtual]
 

version 1.3 This method is responsible for letting the renderer engine know which texture we want to use

Parameters:
const int - the texture identifier
Returns:
void

Implements textureManagerInterface.


Member Data Documentation

std::map<int, LPDIRECT3DTEXTURE8> D3DTextureManager::m_oTextures [protected]
 

our Direct3DDevice interface


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 07:23:27 2003 for GameFramework by doxygen 1.3.1