OgreDepthShadowMapRenderingRun Class Reference

ColorCubeMapRenderingRun used in an OGRE environment. More...

Inheritance diagram for OgreDepthShadowMapRenderingRun:

OgreRenderingRun DepthShadowMapRenderingRun RenderingRun RenderingRun List of all members.

Public Member Functions

 OgreDepthShadowMapRenderingRun (OgreSharedRuns *sharedRuns, String name, Light *light, unsigned int resolutionX, unsigned int resolutionY, String materialName)
 Constructor.
String getDepthMapTextureName ()
 returns the depth shadow map texture created by this run
void refreshLight ()
 Refreshes light camera matrices, called in each update.
Matrix4 getLightViewMatrix ()
 retuns the view matrix of the camera from which the depth shadow map was created
Matrix4 getLightViewProjMatrix ()
 retuns the concatenation of the view and projection matrices of the camera from which the depth shadow map was created

Protected Member Functions

void updateFrame (unsigned long frameNum)
 This function does the actual update in a frame.
void createDepthMap ()
 Creates the depth map texture (2D or CUBE according to light type).
void updateDepthCubeFace (int facenum)
 Updates one face of the depth cubemap (used only in case of point lights).
void updateDepthMap ()
 Updates the depth map (in case of directional and spot lights).

Protected Attributes

Light * light
 the light source this depth shadow map belongs to
Camera * depthMapCamera
 pointer to the camera of the lightsource
String materialName
 the name of the material to be used when rendering the depth shadow map
OgreSharedRunssharedRuns
 a pointer to the OgreSharedRuns this run belongs to
String name
 the name of the depth shadow map texture that was created by this run
Texture * depthMapTexture
 a pointer to the depth shadow texture that was created by this run

Detailed Description

ColorCubeMapRenderingRun used in an OGRE environment.


Constructor & Destructor Documentation

OgreDepthShadowMapRenderingRun::OgreDepthShadowMapRenderingRun OgreSharedRuns sharedRuns,
String  name,
Light *  light,
unsigned int  resolutionX,
unsigned int  resolutionY,
String  materialName
 

Constructor.

Parameters:
sharedRuns a pointer to the OgreSharedRuns this run belongs to
name the name of the depth map texture to be created
light the light source this depth shadow map belongs to
resolutionX the resolution width of the depth shadow map
resolutionY the resolution height of the depth shadow map
materialName the name of the material to be used when rendering the depth shadow map


Member Function Documentation

void OgreDepthShadowMapRenderingRun::updateDepthCubeFace int  facenum  )  [protected, virtual]
 

Updates one face of the depth cubemap (used only in case of point lights).

Parameters:
facenum the number of the face to be updated

Implements DepthShadowMapRenderingRun.

void OgreDepthShadowMapRenderingRun::updateFrame unsigned long  frameNum  )  [protected, virtual]
 

This function does the actual update in a frame.

Parameters:
frameNum current frame number

Implements DepthShadowMapRenderingRun.


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