Main Page   Class Hierarchy   Compound List   File List   Compound Members  

rendererFactory Class Reference

#include <rendererFactory.h>

List of all members.

Public Member Functions

 rendererFactory (HINSTANCE hInst)
 ~rendererFactory ()
HRESULT initInterface (std::string strType, HWND)
rendererInterface * getInterface (void)
void destroyInterface (void)


Detailed Description

This Factory object is solely responsible for the proper creation of our rendererInterface object. Rather than clutter up our main game code with run-time DLL linking code, we can encapsulate all of that into this object.


Constructor & Destructor Documentation

rendererFactory::rendererFactory HINSTANCE  hInst  ) 
 

Overloaded constructor which stores the application instance

Parameters:
HINSTANCE - the handle to our application instance

rendererFactory::~rendererFactory  ) 
 

Destructor


Member Function Documentation

void rendererFactory::destroyInterface void   ) 
 

This method is responsible for doing any cleanup of our rendererInterface object

Parameters:
void 
Returns:
void

rendererInterface* rendererFactory::getInterface void   )  [inline]
 

This method just returns our renderer interface

Parameters:
void 
Returns:
rendererInterface - the pointer to our rendererInterface object

HRESULT rendererFactory::initInterface std::string  strType,
HWND 
 

Version1.1 Modified the method to accept a HWND that we can modify the text to

Parameters:
std::string - the type of renderer we want, OPENGL or D3D
HWND - the handle to our application window
Returns:
HRESULT - if we SUCCEEDED or FAILED the operation


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