OgreDistanceCubeMapRenderTechnique Class Reference

DistanceCubeMapRenderTechnique used in an Ogre environment. More...

Inheritance diagram for OgreDistanceCubeMapRenderTechnique:

DistanceCubeMapRenderTechnique OgreRenderTechnique RenderTechnique RenderTechnique List of all members.

Public Member Functions

 OgreDistanceCubeMapRenderTechnique (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.
 ~OgreDistanceCubeMapRenderTechnique ()
 Destructor.
void update (unsigned long frameNum)
 Updates the resources in the given frame.

Protected Member Functions

void distanceCubeMapRunChanged (RenderingRun *run)
 Called if the changed run is a ColorCubeMapRenderingRun.
RenderingRuncreateDistanceCubeMapRun ()
 Creates a ColorCubeMapRenderingRun.
void distanceCubeMapRunUpdated (RenderingRun *run)
 Called if the changed run is a ColorCubeMapRenderingRun.

Protected Attributes

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

Detailed Description

DistanceCubeMapRenderTechnique used in an Ogre environment.


Constructor & Destructor Documentation

OgreDistanceCubeMapRenderTechnique::OgreDistanceCubeMapRenderTechnique 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 distance 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

RenderingRun * OgreDistanceCubeMapRenderTechnique::createDistanceCubeMapRun  )  [protected, virtual]
 

Creates a ColorCubeMapRenderingRun.

Returns:
the new ColorCubeMapRenderingRun instance.

Implements DistanceCubeMapRenderTechnique.

void OgreDistanceCubeMapRenderTechnique::distanceCubeMapRunChanged RenderingRun run  )  [protected, virtual]
 

Called if the changed run is a ColorCubeMapRenderingRun.

Parameters:
run pointer to the changed ColorCubeMapRenderingRun

Implements DistanceCubeMapRenderTechnique.

void OgreDistanceCubeMapRenderTechnique::distanceCubeMapRunUpdated RenderingRun run  )  [protected, virtual]
 

Called if the changed run is a ColorCubeMapRenderingRun.

Parameters:
run pointer to the changed ColorCubeMapRenderingRun

Implements DistanceCubeMapRenderTechnique.

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

Updates the resources in the given frame.

Parameters:
frameNum the actual framenumber

Reimplemented from DistanceCubeMapRenderTechnique.


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