![]() |
OGRE
13.0
Object-Oriented Graphics Rendering Engine
|
#include <OgreTerrainShaderTransform.h>
Public Member Functions | |
void | copyFrom (const SubRenderState &rhs) |
bool | createCpuSubPrograms (RTShader::ProgramSet *programSet) |
Create sub programs that represents this sub render state as part of a program set. More... | |
int | getExecutionOrder () const |
Get the execution order of this sub render state. More... | |
const String & | getType () const |
Get the type of this sub render state. More... | |
bool | preAddToRenderState (const RTShader::RenderState *renderState, Pass *srcPass, Pass *dstPass) |
Called before adding this sub render state to the given render state. More... | |
void | updateGpuProgramsParams (Renderable *rend, const Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Update GPU programs parameters before a rendering operation occurs. More... | |
![]() | |
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... | |
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... | |
SubRenderState & | operator= (const SubRenderState &rhs) |
Operator = declaration. More... | |
virtual bool | setParameter (const String &name, const String &value) |
generic set method for parameters that connot be derived in preAddToRenderState More... | |
Static Public Attributes | |
static String | Type |
|
inlinevirtual |
Get the type of this sub render state.
Implements Ogre::RTShader::SubRenderState.
References Type.
|
inlinevirtual |
Get the execution order of this sub render state.
Implements Ogre::RTShader::SubRenderState.
References Ogre::RTShader::FFP_TRANSFORM.
|
inline |
|
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 from Ogre::RTShader::SubRenderState.
|
virtual |
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 from Ogre::RTShader::SubRenderState.
|
virtual |
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 from Ogre::RTShader::SubRenderState.