![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Abstract factory interface for creating SubRenderState implementation instances. More...
#include <OgreShaderSubRenderState.h>
Abstract factory interface for creating SubRenderState implementation instances.
|
inline |
|
virtual |
Get the type of this sub render state factory.
Implemented in Ogre::RTShader::GBufferFactory, Ogre::RTShader::HardwareSkinningFactory, Ogre::RTShader::IntegratedPSSM3Factory, Ogre::RTShader::LayeredBlendingFactory, Ogre::RTShader::NormalMapLightingFactory, Ogre::RTShader::PerPixelLightingFactory, Ogre::RTShader::TextureAtlasSamplerFactory, Ogre::RTShader::TriplanarTexturingFactory, Ogre::RTShader::FFPAlphaTestFactory, Ogre::RTShader::FFPColourFactory, Ogre::RTShader::FFPFogFactory, Ogre::RTShader::FFPLightingFactory, Ogre::RTShader::FFPTexturingFactory, and Ogre::RTShader::FFPTransformFactory.
|
virtual |
Create an instance of the SubRenderState sub class it suppose to create.
|
inlinevirtual |
Create an instance of the SubRenderState based on script properties.
This method is called in the context of script parsing and let this factory the opportunity to create custom SubRenderState instances based on extended script properties.
compiler | The compiler instance. |
prop | The abstract property node. |
pass | The pass that is the parent context of this node. |
translator | The translator instance holding existing scripts. |
Reimplemented in Ogre::RTShader::GBufferFactory, Ogre::RTShader::HardwareSkinningFactory, Ogre::RTShader::IntegratedPSSM3Factory, Ogre::RTShader::NormalMapLightingFactory, Ogre::RTShader::PerPixelLightingFactory, Ogre::RTShader::TextureAtlasSamplerFactory, Ogre::RTShader::TriplanarTexturingFactory, Ogre::RTShader::FFPColourFactory, Ogre::RTShader::FFPFogFactory, Ogre::RTShader::FFPLightingFactory, Ogre::RTShader::FFPTexturingFactory, and Ogre::RTShader::FFPTransformFactory.
|
inlinevirtual |
Create an instance of the SubRenderState based on script properties.
This method is called in the context of script parsing and let this factory the opportunity to create custom SubRenderState instances based on extended script properties.
compiler | The compiler instance. |
prop | The abstract property node. |
texState | The pass that is the parent context of this node. |
translator | The translator instance holding existing scripts. |
Reimplemented in Ogre::RTShader::LayeredBlendingFactory.
|
virtual |
Retrieve the previous instance the SRS in the script translator or create a new instance if not found.
translator | The translator instance holding existing scripts. |
|
virtual |
Destroy the given instance.
subRenderState | The instance to destroy. |
Destroy all the instances that created by this factory.
|
inlinevirtual |
Write the given sub-render state instance using the material serializer.
This method is called in the context of material serialization. It is useful for integrating into bigger context of material exporters from various environment that want to take advantage of the RT Shader System. Sub classes of this interface should override in case they need to write custom properties into the script context.
ser | The material serializer instance. |
subRenderState | The sub render state instance to write down. |
srcPass | The source pass. |
dstPass | The generated shader based pass. |
Reimplemented in Ogre::RTShader::GBufferFactory, Ogre::RTShader::HardwareSkinningFactory, Ogre::RTShader::NormalMapLightingFactory, Ogre::RTShader::PerPixelLightingFactory, Ogre::RTShader::TextureAtlasSamplerFactory, Ogre::RTShader::FFPColourFactory, Ogre::RTShader::FFPFogFactory, Ogre::RTShader::FFPLightingFactory, Ogre::RTShader::FFPTexturingFactory, and Ogre::RTShader::FFPTransformFactory.
|
inlinevirtual |
Write the given sub-render state instance using the material serializer.
This method is called in the context of material serialization. It is useful for integrating into bigger context of material exporters from various environment that want to take advantage of the RT Shader System. Sub classes of this interface should override in case they need to write custom properties into the script context.
ser | The material serializer instance. |
subRenderState | The sub render state instance to write down. |
srcTextureUnit | The source texture unit state. |
dstTextureUnit | The generated shader based texture unit state. |
Reimplemented in Ogre::RTShader::LayeredBlendingFactory.