#include <ManagedOgreRenderTexturePass.h>
Inheritance diagram for ManagedOgreRenderTexturePass:
Public Member Functions | |
void | addRenderTarget (RenderTarget *renderTarget, CubeMapFaces cubeMapFace) |
Adds a render target to the render target queue. For multiple render targets. For cube map texture render targets. | |
void | addRenderTarget (RenderTarget *renderTarget) |
Adds a render target to the render target queue. For multiple render targets. | |
bool | changeMaterial (String &materialName, StringVector &newTextureNames, bool useOldTextureNames=false) |
bool | changeTexture (const String &textureName, unsigned short textureUnit) |
void | clearRenderTargets () |
Clears the render target list. | |
Camera * | getCamera () |
virtual const String & | getMaterialName () |
Retrieves the name of the material used in the pass. | |
RenderTexture * | getRenderTexture () |
const String & | getRenderTextureName () |
std::vector< TextureUnitState * > * | getTextureUnitStates () |
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 void | oneTimeRenderToTextureSetup (String &materialName, StringVector &textureNames) |
Creates render to texture objects. | |
void | removeRenderTargetByName (const String &renderTargetName) |
Removes a render target from the list of render targets. | |
void | setCamera (Camera *camera) |
virtual void | setMaterialName (const String &materialName) |
Changes the material of the pass. | |
virtual void | update (NameValuePairList *startParams=0, NameValuePairList *endParams=0) |
Updates the render-texture. | |
virtual | ~ManagedOgreRenderTexturePass () |
Static Public Attributes | |
static const char * | noRenderTargetName |
Protected Member Functions | |
virtual void | createFullScreenQuad () |
Creates a full screen quad for FSQ rendering. | |
virtual void | entityMaterialCleanup () |
Controls the cleanup of entities. It is called from update before onRenderEnd. | |
virtual void | entityMaterialSetup () |
Controls the setup of entities. It is called from update after onRenderStart. | |
virtual void | onRenderEnd (NameValuePairList *namedParams=0) |
Runs after the render-texture object is updated place all cleanup code here. | |
virtual void | onRenderStart (NameValuePairList *namedParams=0) |
Runs before the render-texture object is updated place all shader setup here. | |
Protected Attributes | |
std::vector< CubeMapFaces > | cubeMapFaces |
A list of cube map faces to use for Cube map RT-s. | |
EffectWrapper * | effectWrapper |
EffectWrapper for convinient shader setup. | |
std::vector< bool > | entityVisibilityList |
A list to hold all visibility information for entities. | |
bool | fullScreenQuadRenderer |
Shows if we are rendering a full screen quad. | |
Root * | mRoot |
Pointer to the current ogre root. | |
SceneManager * | mSceneMgr |
Pointer to the current Ogre SceneManager. | |
RenderSystem * | renderSystem |
Pointer to the current Ogre RenderSystem. | |
std::vector< RenderTarget * > | renderTargets |
A list of render targets to use in the pass. For MRT-s. | |
RenderTexture * | renderTexture |
The pointer to the pass's own render texture object. | |
StringVector | textureNames |
List of texture names used in the pass. | |
std::vector< TextureUnitState * > | usedTextureUnitStates |
List of texture units. | |
Static Protected Attributes | |
static MovablePlane * | fullScreenQuad |
MovablePlane instance for full screen quad. | |
static Entity * | fullScreenQuadEntity |
Entity to hold the full screen quad. | |
static SceneNode * | fullScreenQuadSceneNode |
SceneNode instance for full screen quad. |
|
Constructor.
|
|
Destructor. |
|
Adds a render target to the render target queue. For multiple render targets. For cube map texture render targets.
|
|
Adds a render target to the render target queue. For multiple render targets.
|
|
|
|
|
|
Clears the render target list.
|
|
Creates a full screen quad for FSQ rendering.
|
|
Controls the cleanup of entities. It is called from update before onRenderEnd.
Reimplemented in EnvMapPass. |
|
Controls the setup of entities. It is called from update after onRenderStart.
Reimplemented in EnvMapPass. |
|
|
|
Retrieves the name of the material used in the pass.
|
|
|
|
|
|
|
|
Creates render to texture objects.
|
|
Runs after the render-texture object is updated place all cleanup code here.
Reimplemented in EmissionMapPassManager, FinalRenderingPass, IBLBlendAddIllumPass, IBLDepthMapPass, IBLRenderBlackPass, IterationVisibilityMapPass, NormalMapPass, OrigVismapPass, PhotonMapFilteringPass, RadAveragingPass, RadiosityMapPass, RadiosityMipmapPass, RenderCubeMapColorDistancePass, RenderCubeMapUVPass, RenderFinalPass, RenderPhotonHitPass, RenderPhotonUVMapPass, RenderRefractObjectMapPass, RenderUmbraPass, SearchEndPass, SearchPass, SearchStartPass, EnvMapFinalGatheringPass, EnvMapPass, FilteringPass, RenderDepthBufferPass, and RenderGeometryPass. |
|
Runs before the render-texture object is updated place all shader setup here.
Reimplemented in EmissionMapPassManager, FinalRenderingPass, IBLBlendAddIllumPass, IBLDepthMapPass, IBLRenderBlackPass, IterationVisibilityMapPass, NormalMapPass, OrigVismapPass, PhotonMapFilteringPass, RadAveragingPass, RadiosityMapPass, RadiosityMipmapPass, RenderCubeMapColorDistancePass, RenderCubeMapUVPass, RenderFinalPass, RenderPhotonHitPass, RenderPhotonUVMapPass, RenderRefractObjectMapPass, RenderUmbraPass, SearchEndPass, SearchPass, SearchStartPass, EnvMapFinalGatheringPass, EnvMapPass, FilteringPass, RenderDepthBufferPass, and RenderGeometryPass. |
|
Removes a render target from the list of render targets.
|
|
|
|
Changes the material of the pass.
|
|
Updates the render-texture.
|
|
A list of cube map faces to use for Cube map RT-s.
|
|
EffectWrapper for convinient shader setup.
|
|
A list to hold all visibility information for entities.
|
|
MovablePlane instance for full screen quad.
|
|
Entity to hold the full screen quad.
|
|
Shows if we are rendering a full screen quad.
|
|
SceneNode instance for full screen quad.
|
|
Pointer to the current ogre root.
|
|
Pointer to the current Ogre SceneManager.
|
|
If the name of the render target equals this String, then no render target is created. |
|
Pointer to the current Ogre RenderSystem.
|
|
A list of render targets to use in the pass. For MRT-s.
|
|
The pointer to the pass's own render texture object.
|
|
List of texture names used in the pass.
|
|
List of texture units.
|