![]() |
OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
This class is the base interface of sub part from a shader based rendering pipeline. More...
#include <OgreShaderSubRenderState.h>
Public Member Functions | |
SubRenderState () | |
Class default constructor. More... | |
virtual | ~SubRenderState () |
Class destructor. More... | |
virtual void | copyFrom (const SubRenderState &rhs)=0 |
Copy details from a given sub render state to this one. More... | |
virtual bool | createCpuSubPrograms (ProgramSet *programSet) |
Create sub programs that represents this sub render state as part of a program set. More... | |
SubRenderStateAccessorPtr | getAccessor () |
Return the accessor object to this sub render state. More... | |
SubRenderStateAccessorPtr | getAccessor () const |
Return the accessor object to this sub render state. More... | |
virtual int | getExecutionOrder () const =0 |
Get the execution order of this sub render state. More... | |
virtual const String & | getType () const =0 |
Get the type of this sub render state. More... | |
SubRenderState & | operator= (const SubRenderState &rhs) |
Operator = declaration. More... | |
virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
Called before adding this sub render state to the given render state. More... | |
virtual void | updateGpuProgramsParams (Renderable *rend, Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Update GPU programs parameters before a rendering operation occurs. More... | |
This class is the base interface of sub part from a shader based rendering pipeline.
All sub parts implementations should derive from it and implement the needed methods. A simple example of sub class of this interface will be the transform sub state of the fixed pipeline.
Ogre::RTShader::SubRenderState::SubRenderState | ( | ) |
Class default constructor.
|
virtual |
Class destructor.
|
pure virtual |
Get the type of this sub render state.
Implemented in Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::LayeredBlending, Ogre::RTShader::HardwareSkinning, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::FFPColour, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::FFPFog, Ogre::RTShader::IntegratedPSSM3, Ogre::RTShader::FFPTexturing, Ogre::RTShader::NormalMapLighting, Ogre::RTShader::FFPLighting, and Ogre::RTShader::FFPTransform.
|
pure virtual |
Get the execution order of this sub render state.
Implemented in Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::HardwareSkinning, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::FFPColour, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::FFPFog, Ogre::RTShader::IntegratedPSSM3, Ogre::RTShader::FFPTexturing, Ogre::RTShader::FFPLighting, and Ogre::RTShader::FFPTransform.
|
pure virtual |
Copy details from a given sub render state to this one.
rhs | the source sub state to copy from. |
Implemented in Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::LayeredBlending, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::HardwareSkinning, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::FFPColour, Ogre::RTShader::FFPFog, Ogre::RTShader::IntegratedPSSM3, Ogre::RTShader::FFPTexturing, Ogre::RTShader::FFPLighting, Ogre::RTShader::NormalMapLighting, and Ogre::RTShader::FFPTransform.
SubRenderState& Ogre::RTShader::SubRenderState::operator= | ( | const SubRenderState & | rhs | ) |
Operator = declaration.
Assign the given source sub state to this sub state.
rhs | the source sub state to copy from. |
|
virtual |
Create sub programs that represents this sub render state as part of a program set.
The given program set contains CPU programs that represents a vertex shader and pixel shader. One should use these program class API to create a representation of the sub state he wished to implement.
programSet | container class of CPU and GPU programs that this sub state will affect on. |
Reimplemented in Ogre::RTShader::FFPTransform.
|
inlinevirtual |
Update GPU programs parameters before a rendering operation occurs.
This method is called in the context of SceneManager::renderSingle object via the RenderObjectListener interface and lets this sub render state instance opportunity to update custom GPU program parameters before the rendering action occurs.
rend | The renderable that is about to be rendered. |
pass | The pass that used for this rendering. |
source | The auto parameter source. |
pLightList | The light list used in the current rendering context. |
Reimplemented in Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::FFPFog, Ogre::RTShader::IntegratedPSSM3, Ogre::RTShader::FFPTexturing, Ogre::RTShader::FFPLighting, and Ogre::RTShader::NormalMapLighting.
|
inlinevirtual |
Called before adding this sub render state to the given render state.
Allows this sub render state class to configure specific parameters depending on source pass or parent render state. Return of false value will cause canceling the add operation.
renderState | The target render state container this sub render state is about to be added. |
srcPass | The source pass. |
dstPass | The destination pass. |
Reimplemented in Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::HardwareSkinning, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::FFPColour, Ogre::RTShader::FFPFog, Ogre::RTShader::IntegratedPSSM3, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::FFPTexturing, Ogre::RTShader::FFPLighting, Ogre::RTShader::NormalMapLighting, and Ogre::RTShader::FFPTransform.
SubRenderStateAccessorPtr Ogre::RTShader::SubRenderState::getAccessor | ( | ) |
Return the accessor object to this sub render state.
SubRenderStateAccessorPtr Ogre::RTShader::SubRenderState::getAccessor | ( | ) | const |
Return the accessor object to this sub render state.