Main Page   Class Hierarchy   Compound List   File List   Compound Members  

D3DRenderer Class Reference

#include <D3DRenderer.h>

Inheritance diagram for D3DRenderer:

rendererInterface List of all members.

Public Member Functions

 D3DRenderer ()
 ~D3DRenderer ()
HRESULT createDevice (HWND, DWORD, DWORD, DWORD, BOOL)
void destroyDevice ()
HRESULT beginRenderingScene ()
void endRenderingScene ()
void setClearColor (FLOAT, FLOAT, FLOAT, FLOAT)
HRESULT addTexture (std::string strFilename, const int value)
void setTexture (const int value)

Detailed Description

This is our "low level" implementation of our rendererInterface class in Direct3D8 Note that it's VERY basic, but just meant to show a POSSIBLE implementation


Constructor & Destructor Documentation

D3DRenderer::D3DRenderer  ) 
 

Constructor

D3DRenderer::~D3DRenderer  ) 
 

Destructor


Member Function Documentation

HRESULT D3DRenderer::addTexture std::string  strFilename,
const int  value
 

(v1.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

HRESULT D3DRenderer::beginRenderingScene  )  [virtual]
 

Method to begin rendering primitives

Parameters:
void 
Returns:
HRESULT - SUCCEEDED if our hardware pipeline is ready, FAILED if not

Implements rendererInterface.

HRESULT D3DRenderer::createDevice HWND  ,
DWORD  ,
DWORD  ,
DWORD  ,
BOOL 
[virtual]
 

Method to create and initialize our hardware

Parameters:
HWND - our window handle
DWORD - our window width
DWORD - our window height
DWORD - our window depth
BOOL - flag for being windowed or fullscreen
Returns:
HRESULT - SUCCEEDED if we're ok, FAILED otherwise

Implements rendererInterface.

void D3DRenderer::destroyDevice  )  [virtual]
 

Method to destroy it

Parameters:
void 
Returns:
void

Implements rendererInterface.

void D3DRenderer::endRenderingScene  )  [virtual]
 

Method to end rendering primitives

Parameters:
void 
Returns:
void

Implements rendererInterface.

void D3DRenderer::setClearColor FLOAT  ,
FLOAT  ,
FLOAT  ,
FLOAT 
[virtual]
 

Method to change the screen clearing color

Parameters:
FLOAT - red component
FLOAT - green component
FLOAT - blue component
FLOAT - alpha component
Returns:
void

Implements rendererInterface.

void D3DRenderer::setTexture const int  value  ) 
 

(v1.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


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