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

NormalMapPass Class Reference

Generates a texture of the surface normals. More...

#include <NormalMapPass.h>

Inheritance diagram for NormalMapPass:

ManagedOgreRenderTexturePass List of all members.

Public Member Functions

 NormalMapPass (Root *mRoot, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_FLOAT32_RGBA, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false, String renderTextureName="NormapMapTexture")
 ~NormalMapPass ()

Protected Member Functions

void onRenderStart (NameValuePairList *namedParams=0)
 Pre rendering method.
void onRenderEnd (NameValuePairList *namedParams=0)
 Post rendering method.

Detailed Description

Generates a texture of the surface normals.

SuperClass: ManagedOgreRenderTexturePass Class: NormalMapPass The instances of this class are to generate a texture of the surface normals of the owner entity. The resulting texture is a PF_FLOAT32_RGBA type texture, where the X, Y and Z coordinates of the surface normals will be stored in the R, G and B coordinates of the render texture of this class.


Constructor & Destructor Documentation

NormalMapPass::NormalMapPass Root *  mRoot,
unsigned int  width,
unsigned int  height,
TextureType  texType = TEX_TYPE_2D,
PixelFormat  internalFormat = PF_FLOAT32_RGBA,
const NameValuePairList *  miscParams = 0,
bool  fullScreenQuadRenderer = false,
String  renderTextureName = "NormapMapTexture"
 

Parameters:
mRoot pointer to the Root object of the graphics engine.
width the width of render texture in pixels.
height the height of render texture in pixels.
texType the type of render texture. Its default value is TEX_TYPE_2D.
internalFormat the pixel format of the render texture. Its default value is PF_FLOAT32_RGBA.
miscParams a pointer to miscelaneous parameters. Its default value is 0.
fullScreenQuadRenderer a bool flag to decide on full screen rendering on a quad. Its default value is false.
renderTextureName a unique name for the render texture. Its default value is "NormapMapTexture". Construtor.

NormalMapPass::~NormalMapPass  ) 
 

Destructor.


Member Function Documentation

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

Post rendering method.

It runs after the render-texture object is updated. Place all cleanup code here.

Parameters:
namedParams Parameter list.

Reimplemented from ManagedOgreRenderTexturePass.

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

Pre rendering method.

It runs before the render-texture object is updated. Place all shader setup here.

Parameters:
namedParams Parameter list.

Reimplemented from ManagedOgreRenderTexturePass.


The documentation for this class was generated from the following file:
Generated on Mon Apr 18 09:57:35 2005 for OGRE_IllumModule by  doxygen 1.4.2