OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
This is a container class for sub render state class. More...
#include <OgreShaderRenderState.h>
Public Member Functions | |
RenderState () | |
Class default constructor. | |
virtual | ~RenderState () |
Class destructor. | |
void | addTemplateSubRenderState (SubRenderState *subRenderState) |
Add a template sub render state to this render state. | |
void | getLightCount (int lightCount[3]) const |
Get the light count per light type. | |
bool | getLightCountAutoUpdate () const |
Return true if this render state override the light count. | |
const SubRenderStateList & | getTemplateSubRenderStateList () const |
Get the list of the template sub render states composing this render state. | |
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 | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
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 | |
void | removeTemplateSubRenderState (SubRenderState *subRenderState) |
Remove a template sub render state from this render state. | |
void | reset () |
Reset this render state. | |
void | setLightCount (const int lightCount[3]) |
Set the light count per light type. | |
void | setLightCountAutoUpdate (bool autoUpdate) |
Set the light count auto update state. | |
Friends | |
class | FFPRenderStateBuilder |
class | ProgramManager |
This is a container class for sub render state class.
A render state is defined by the sub render states that compose it. The user should use this interface to define global or per material custom behavior. I.E In order to apply per pixel to a specific material one should implement a sub class of SubRenderState that perform a per pixel lighting model, get the render state of the target material and add the custom sub class to it.
Ogre::RTShader::RenderState::RenderState | ( | ) |
Class default constructor.
|
virtual |
Class destructor.
void Ogre::RTShader::RenderState::addTemplateSubRenderState | ( | SubRenderState * | subRenderState | ) |
Add a template sub render state to this render state.
subRenderState | The sub render state template to add. |
Get the light count per light type.
lightCount | The light count per type. lightCount[0] defines the point light count. lightCount[1] defines the directional light count. lightCount[2] defines the spot light count. |
|
inline |
Return true if this render state override the light count.
If light count is not overridden it will be updated from the shader generator based on current scene lights.
|
inline |
Get the list of the template sub render states composing this render state.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::RTShader::RenderState::removeTemplateSubRenderState | ( | SubRenderState * | subRenderState | ) |
Remove a template sub render state from this render state.
subRenderState | The sub render state to remove. |
void Ogre::RTShader::RenderState::reset | ( | ) |
Reset this render state.
Set the light count per light type.
lightCount | The light count per type. lightCount[0] defines the point light count. lightCount[1] defines the directional light count. lightCount[2] defines the spot light count. |
Set the light count auto update state.
If the value is false the light count will remain static for the values that were set by the user. If the value is true the light count will be updated from the owner shader generator scheme based on current scene lights. The default is true.
|
friend |
|
friend |