Ogre2RenderTargetMaterial Class Reference
Causes all objects in a scene to be rendered with the same material when rendered by a given RenderTarget. More...
#include <Ogre2RenderTargetMaterial.hh>
Public Member Functions | |
Ogre2RenderTargetMaterial (Ogre::SceneManager *_scene, Ogre::RenderTarget *_renderTarget, Ogre::Material *_material) | |
constructor More... | |
~Ogre2RenderTargetMaterial () | |
destructor More... | |
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. More... | |
Detailed Description
Causes all objects in a scene to be rendered with the same material when rendered by a given RenderTarget.
Constructor & Destructor Documentation
◆ Ogre2RenderTargetMaterial()
Ogre2RenderTargetMaterial | ( | Ogre::SceneManager * | _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
◆ ~Ogre2RenderTargetMaterial()
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: