Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

RenderUmbraPass Class Reference

Modify a texture to create umbra for the entity. More...

#include <RenderUmbraPass.h>

Inheritance diagram for RenderUmbraPass:

ManagedOgreRenderTexturePass List of all members.

Public Member Functions

 RenderUmbraPass (Root *mRoot, const String &renderTextureName, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_X8R8G8B8, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false)
 Constructor.
 ~RenderUmbraPass ()
 Destructor.

Protected Member Functions

Vector3 getEntityPos3f ()
 Returns the value of g_vEntityPos3f.
Vector3 getLightPos3f ()
 Returns the value of g_vLightPos3f.
void onRenderEnd (NameValuePairList *namedParams=0)
void onRenderStart (NameValuePairList *namedParams=0)
void setEntityPos3f (Vector3 vector3)
 Sets the value of g_vEntityPos3f.
void setLightPos3f (Vector3 vector3)
 Sets the value of g_vLightPos3f.

Private Attributes

Vector3 g_vEntityPos3f
 Contains the position of the Entity object.
Vector3 g_vLightPos3f
 Contains the position of the Light.

Detailed Description

Modify a texture to create umbra for the entity.

SuperClass: ManagedOgreRenderTexturePass Class: RenderUmbraPass


Constructor & Destructor Documentation

RenderUmbraPass Root *  mRoot,
const String &  renderTextureName,
unsigned int  width,
unsigned int  height,
TextureType  texType = TEX_TYPE_2D,
PixelFormat  internalFormat = PF_X8R8G8B8,
const NameValuePairList *  miscParams = 0,
bool  fullScreenQuadRenderer = false
 

Constructor.

Constructor.

Parameters:
mRoot Root, The root class of the Ogre system.
renderTextureName String, The target of the rendering.
width int, The width of the texture.
height int, The height of the texture.
texType TextureType, Texure type.
internalFormat PixelFormat, Format of the pixel.
miscParams NameValuePairList, Pairs for names and values.
fullScreenQuadRenderer bool, Do we render a full screen quad.

~RenderUmbraPass  )  [inline]
 

Destructor.


Member Function Documentation

Vector3 getEntityPos3f  )  [protected]
 

Returns the value of g_vEntityPos3f.

Vector3 getLightPos3f  )  [protected]
 

Returns the value of g_vLightPos3f.

void onRenderEnd NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Runs after the render-texture object is updated place all cleanup code here.

Parameters:
namedParams Contains named parameters for rendering end.

Reimplemented from ManagedOgreRenderTexturePass.

void onRenderStart NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Runs before the render-texture object is updated place all shader setup here.

Parameters:
namedParams A list of named parameters for rendering setup.

Reimplemented from ManagedOgreRenderTexturePass.

void setEntityPos3f Vector3  vector3  )  [protected]
 

Sets the value of g_vEntityPos3f.

Parameters:
vector3 Contains the new value of g_vEntityPos3f.

void setLightPos3f Vector3  vector3  )  [protected]
 

Sets the value of g_vLightPos3f.

Parameters:
vector3 Contains the new value of g_vLightPos3f.


Member Data Documentation

Vector3 g_vEntityPos3f [private]
 

Contains the position of the Entity object.

Vector3 g_vLightPos3f [private]
 

Contains the position of the Light.


The documentation for this class was generated from the following file:
Generated on Mon Apr 18 10:59:28 2005 for OGRE_IllumModule by  doxygen 1.4.2