OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
Texturing sub render state implementation of layered blending. More...
#include <OgreShaderExLayeredBlending.h>
Classes | |
struct | TextureBlend |
Public Member Functions | |
LayeredBlending () | |
Class default constructor. 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... | |
BlendMode | getBlendMode (unsigned short index) const |
Return the blend mode of the given texture unit index. More... | |
virtual int | getExecutionOrder () const |
bool | getSourceModifier (unsigned short index, SourceModifier &modType, int &customNum) const |
Returns the source modifier parameters for a given texture unit. More... | |
virtual const Ogre::String & | getType () const |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
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 * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
virtual bool | preAddToRenderState (const RenderState *renderState, Pass *srcPass, Pass *dstPass) |
void | setBlendMode (unsigned short index, BlendMode mode) |
Set the blend mode of the given texture unit layer with the previous layer. More... | |
void | setSourceModifier (unsigned short index, SourceModifier modType, int customNum) |
Set the source modifier parameters for a given texture unit. More... | |
virtual void | updateGpuProgramsParams (Renderable *rend, Pass *pass, const AutoParamDataSource *source, const LightList *pLightList) |
Static Public Member Functions | |
static void | AddTextureSampleWrapperInvocation (UniformParameterPtr textureSampler, UniformParameterPtr textureSamplerState, GpuConstantType samplerType, Function *function, int groupOrder, int &internalCounter) |
static ParameterPtr | GetSamplerWrapperParam (UniformParameterPtr sampler, Function *function) |
Static Public Attributes | |
static String | Type |
Texturing sub render state implementation of layered blending.
Derives from FFPTexturing class which derives from SubRenderState class.
Ogre::RTShader::LayeredBlending::LayeredBlending | ( | ) |
Class default constructor.
|
staticinherited |
|
virtual |
Reimplemented from Ogre::RTShader::FFPTexturing.
|
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.
BlendMode Ogre::RTShader::LayeredBlending::getBlendMode | ( | unsigned short | index | ) | const |
Return the blend mode of the given texture unit index.
|
virtualinherited |
Implements Ogre::RTShader::SubRenderState.
|
staticinherited |
bool Ogre::RTShader::LayeredBlending::getSourceModifier | ( | unsigned short | index, |
SourceModifier & | modType, | ||
int & | customNum | ||
) | const |
Returns the source modifier parameters for a given texture unit.
index | Texture blend index |
modType | The source modification type to use |
customNum | The custom parameter number used to control the modification |
|
virtual |
Reimplemented from Ogre::RTShader::FFPTexturing.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
|
inlineinherited |
placement operator new
|
inlineinherited |
array operator new, with debug line info
|
inlineinherited |
|
virtualinherited |
Reimplemented from Ogre::RTShader::SubRenderState.
void Ogre::RTShader::LayeredBlending::setBlendMode | ( | unsigned short | index, |
BlendMode | mode | ||
) |
Set the blend mode of the given texture unit layer with the previous layer.
index | The texture unit texture. Textures units (index-1) and (index) will be blended. |
mode | The blend mode to apply. |
void Ogre::RTShader::LayeredBlending::setSourceModifier | ( | unsigned short | index, |
SourceModifier | modType, | ||
int | customNum | ||
) |
Set the source modifier parameters for a given texture unit.
modType | The source modification type to use |
customNum | The custom parameter number used to control the modification |
|
virtualinherited |
Reimplemented from Ogre::RTShader::SubRenderState.
|
static |