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

ManagedOgreRenderTexturePass Class Reference

#include <ManagedOgreRenderTexturePass.h>

Inheritance diagram for ManagedOgreRenderTexturePass:

EmissionMapPassManager FinalRenderingPass NormalMapPass OrigVismapPass PhotonMapFilteringPass RadAveragingPass RadiosityMapPass RadiosityMipmapPass RenderPhotonHitPass SearchEndPass SearchPass SearchStartPass List of all members.

Public Member Functions

 ManagedOgreRenderTexturePass (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)
virtual ~ManagedOgreRenderTexturePass ()
virtual void oneTimeRenderToTextureSetup (String &materialName, StringVector &textureNames)
virtual void update (NameValuePairList *startParams=0, NameValuePairList *endParams=0)
const String & getRenderTextureName ()
RenderTexture * getRenderTexture ()
bool changeTexture (String textureName, unsigned short textureUnit, TextureType ttype=TEX_TYPE_2D, int mipmaps=-1)
bool changeMaterial (String &materialName, StringVector &newTextureNames, bool useOldTextureNames=false)
std::vector< TextureUnitState * > * getTextureUnitStates ()
void setCamera (Camera *camera)
Camera * getCamera ()

Protected Member Functions

virtual void onRenderStart (NameValuePairList *namedParams=0)
virtual void onRenderEnd (NameValuePairList *namedParams=0)
virtual void createFullScreenQuad ()

Detailed Description

Class ManagedOgreRenderTexturePass encapsulates a hardware accelerated GPU driven render-to-texture pass.


Constructor & Destructor Documentation

ManagedOgreRenderTexturePass::ManagedOgreRenderTexturePass 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.

virtual ManagedOgreRenderTexturePass::~ManagedOgreRenderTexturePass  )  [inline, virtual]
 

Destructor.


Member Function Documentation

bool ManagedOgreRenderTexturePass::changeMaterial String &  materialName,
StringVector &  newTextureNames,
bool  useOldTextureNames = false
 

Parameters:
materialName Name of the specific material to create.
newTextureNames A list of texture names to set.
useOldTextureNames Shows whether to use old texture names or not.
Returns:
true if texture could be set for the specific texture unit.

bool ManagedOgreRenderTexturePass::changeTexture String  textureName,
unsigned short  textureUnit,
TextureType  ttype = TEX_TYPE_2D,
int  mipmaps = -1
 

Parameters:
textureName Name of the specific texture to set.
textureUnit Number of the texture unit to set.
ttype Type of texture.
mipmaps Number of mipmap levels.
Returns:
true if texture could be set for the specific texture unit.

virtual void ManagedOgreRenderTexturePass::createFullScreenQuad  )  [protected, virtual]
 

Creates a full screen quad for FSQ rendering.

Camera* ManagedOgreRenderTexturePass::getCamera  )  [inline]
 

Returns:
Current camera.

RenderTexture* ManagedOgreRenderTexturePass::getRenderTexture  )  [inline]
 

Returns:
Returns render-to-texture object pointer.

const String& ManagedOgreRenderTexturePass::getRenderTextureName  )  [inline]
 

Returns:
Returns render-to-texture object name.

std::vector<TextureUnitState*>* ManagedOgreRenderTexturePass::getTextureUnitStates  )  [inline]
 

Returns:
A list of texture unit states.

virtual void ManagedOgreRenderTexturePass::oneTimeRenderToTextureSetup String &  materialName,
StringVector &  textureNames
[virtual]
 

Creates render to texture objects.

Parameters:
materialName Name of material to create
textureNames The names of the textures to use.

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

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

Parameters:
namedParams Contains named parameters for rendering end.

Reimplemented in EmissionMapPassManager, FinalRenderingPass, NormalMapPass, OrigVismapPass, PhotonMapFilteringPass, RadAveragingPass, RadiosityMapPass, RadiosityMipmapPass, RenderPhotonHitPass, SearchEndPass, SearchPass, and SearchStartPass.

virtual void ManagedOgreRenderTexturePass::onRenderStart NameValuePairList *  namedParams = 0  )  [inline, 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 in EmissionMapPassManager, FinalRenderingPass, NormalMapPass, OrigVismapPass, PhotonMapFilteringPass, RadAveragingPass, RadiosityMapPass, RadiosityMipmapPass, RenderPhotonHitPass, SearchEndPass, SearchPass, and SearchStartPass.

void ManagedOgreRenderTexturePass::setCamera Camera *  camera  )  [inline]
 

Parameters:
Camera to set.

virtual void ManagedOgreRenderTexturePass::update NameValuePairList *  startParams = 0,
NameValuePairList *  endParams = 0
[virtual]
 

Updates the render-texture.

Parameters:
startParams Starting parameters for the rendering pass.
endParams Ending parameters for the rendering pass.


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