OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Colour sub render state implementation of the Fixed Function Pipeline. More...
#include <OgreShaderFFPColour.h>
Public Types | |
enum | StageFlags { SF_VS_INPUT_DIFFUSE = 1 << 1 , SF_VS_INPUT_SPECULAR = 1 << 2 , SF_VS_OUTPUT_DIFFUSE = 1 << 3 , SF_VS_OUTPUT_SPECULAR = 1 << 4 , SF_PS_INPUT_DIFFUSE = 1 << 5 , SF_PS_INPUT_SPECULAR = 1 << 6 , SF_PS_OUTPUT_DIFFUSE = 1 << 7 , SF_PS_OUTPUT_SPECULAR = 1 << 8 } |
Public Member Functions | |
FFPColour () | |
Class default constructor. More... | |
void | addResolveStageMask (unsigned int mask) |
Add the given mask to resolve stage flags that this sub render state will produce. More... | |
virtual void | copyFrom (const SubRenderState &rhs) |
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 |
unsigned int | getResolveStageFlags () const |
Get the current resolve stage flags. More... | |
virtual const String & | getType () const |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
void | removeResolveStageMask (unsigned int mask) |
Remove the given mask from the resolve stage flags that this sub render state will produce. More... | |
void | setResolveStageFlags (unsigned int flags) |
Set the resolve stage flags that this sub render state will produce. More... | |
virtual void | updateGpuProgramsParams (Renderable *rend, Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Update GPU programs parameters before a rendering operation occurs. More... | |
Static Public Attributes | |
static String | Type |
Colour sub render state implementation of the Fixed Function Pipeline.
Derives from SubRenderState class.
Ogre::RTShader::FFPColour::FFPColour | ( | ) |
Class default constructor.
|
inline |
Add the given mask to resolve stage flags that this sub render state will produce.
mask | The mask to add to current flag set. |
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
virtualinherited |
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.
|
inherited |
Return the accessor object to this sub render state.
|
inherited |
Return the accessor object to this sub render state.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
inline |
Get the current resolve stage flags.
|
virtual |
Implements Ogre::RTShader::SubRenderState.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
virtual |
Reimplemented from Ogre::RTShader::SubRenderState.
|
inline |
Remove the given mask from the resolve stage flags that this sub render state will produce.
mask | The mask to remove from current flag set. |
|
inline |
Set the resolve stage flags that this sub render state will produce.
I.E - If one want to specify that the vertex shader program needs to get a diffuse component and the pixel shader should output diffuse component he should pass SF_VS_INPUT_DIFFUSE | SF_PS_OUTPUT_DIFFUSE.
flags | The stage flag to set. |
|
inlinevirtualinherited |
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::FFPTexturing, Ogre::RTShader::FFPLighting, Ogre::RTShader::FFPFog, Ogre::RTShader::FFPAlphaTest, Ogre::RTShader::TriplanarTexturing, Ogre::RTShader::TextureAtlasSampler, Ogre::RTShader::PerPixelLighting, Ogre::RTShader::NormalMapLighting, and Ogre::RTShader::IntegratedPSSM3.
|
static |