OgreCubeMapRenderTechnique Class Reference

CubeMapRenderTechnique used in an Ogre environment. More...

Inheritance diagram for OgreCubeMapRenderTechnique:

CubeMapRenderTechnique OgreRenderTechnique RenderTechnique RenderTechnique List of all members.

Public Member Functions

 OgreCubeMapRenderTechnique (unsigned long startFrame, unsigned long cubeMapUpdateInterval, unsigned int cubeMapResolution, unsigned char texID, bool useDistCalc, bool useFaceAngleCalc, float distTolerance, float angleTolerance, bool updateAllFace, Pass *pass, OgreRenderable *parentRenderable, OgreTechniqueGroup *parentTechniqueGroup)
 Constructor.
 ~OgreCubeMapRenderTechnique ()
 Destructor.
void update (unsigned long frameNum)
 Updates the resources in the given frame.

Protected Member Functions

void colorCubeMapRunChanged (RenderingRun *run)
 Called if the changed run is a ColorCubeMapRenderingRun.
RenderingRuncreateColorCubeMapRun ()
 Creates a ColorCubeMapRenderingRun.

Protected Attributes

unsigned char texID
 the id of the texture unit state the resulting cubemap should be bound to

Detailed Description

CubeMapRenderTechnique used in an Ogre environment.


Constructor & Destructor Documentation

OgreCubeMapRenderTechnique::OgreCubeMapRenderTechnique unsigned long  startFrame,
unsigned long  cubeMapUpdateInterval,
unsigned int  cubeMapResolution,
unsigned char  texID,
bool  useDistCalc,
bool  useFaceAngleCalc,
float  distTolerance,
float  angleTolerance,
bool  updateAllFace,
Pass *  pass,
OgreRenderable parentRenderable,
OgreTechniqueGroup parentTechniqueGroup
 

Constructor.

Parameters:
startFrame adds an offset to the current frame number to help evenly distribute updates between frames
cubeMapUpdateInterval update frequency
cubeMapResolution color cubemap resolution
texID the id of the texture unit state the resulting cubemap should be bound to
useDistCalc flag to skip cube face update if object is far away
useFaceAngleCalc flag to skip cube face update if face is neglible
distTolerance distance tolerance used in face skip
angleTolerance angle tolerance used in face skip
updateAllFace defines if all cubemap faces should be updated in a frame or only one face per frame
pass the pass to operate on
parentRenderable the object to operate on
parentTechniqueGroup the TechniqueGroup this RenderedTechnique is attached to


Member Function Documentation

void OgreCubeMapRenderTechnique::colorCubeMapRunChanged RenderingRun run  )  [protected, virtual]
 

Called if the changed run is a ColorCubeMapRenderingRun.

Parameters:
run pointer to the changed ColorCubeMapRenderingRun

Implements CubeMapRenderTechnique.

RenderingRun * OgreCubeMapRenderTechnique::createColorCubeMapRun  )  [protected, virtual]
 

Creates a ColorCubeMapRenderingRun.

Returns:
the new ColorCubeMapRenderingRun instance.

Implements CubeMapRenderTechnique.

void OgreCubeMapRenderTechnique::update unsigned long  frameNum  )  [virtual]
 

Updates the resources in the given frame.

Parameters:
frameNum the actual framenumber

Reimplemented from CubeMapRenderTechnique.


The documentation for this class was generated from the following files:
Generated on Thu Apr 27 17:29:40 2006 for GameTools Illumination Module by  doxygen 1.4.6-NO