OgreRenderTargetMaterial Class Reference
Causes all objects in a scene to be rendered with the same material when rendered by a given RenderTarget. More...
#include <OgreRenderTargetMaterial.hh>
Public Member Functions | |
OgreRenderTargetMaterial (OgreScenePtr _scene, Ogre::RenderTarget *_renderTarget, Ogre::Material *_material) | |
constructor | |
~OgreRenderTargetMaterial () | |
destructor | |
virtual Ogre::Technique * | handleSchemeNotFound (uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *_rend) override |
Ogre callback that assigned same material to all renderables when the requested scheme is not found. | |
Detailed Description
Causes all objects in a scene to be rendered with the same material when rendered by a given RenderTarget.
Constructor & Destructor Documentation
◆ OgreRenderTargetMaterial()
OgreRenderTargetMaterial | ( | OgreScenePtr | _scene, |
Ogre::RenderTarget * | _renderTarget, | ||
Ogre::Material * | _material | ||
) |
constructor
- Parameters
-
[in] _scene the scene manager responsible for rendering [in] _renderTarget the RenderTarget this should apply to [in] _material the material to apply to all renderables
◆ ~OgreRenderTargetMaterial()
destructor
Member Function Documentation
◆ handleSchemeNotFound()
|
overridevirtual |
Ogre callback that assigned same material to all renderables when the requested scheme is not found.
- Parameters
-
[in] _schemeIndex Index of scheme requested [in] _schemeName Name of scheme requested [in] _originalMaterial Orignal material that does not contain the requested scheme [in] _lodIndex The material level-of-detail [in] _rend Pointer to the Ogre::Renderable object requesting the use of the techinique
- Returns
- The Ogre material technique to use when scheme is not found.
The documentation for this class was generated from the following file: