EditorMaterialListener Class Reference

Ogre material listener. More...

#include <EditorMaterialSwitcher.hh>

Inherits Listener.

Public Member Functions

 EditorMaterialListener (const rendering::CameraPtr &_camera)
 Constructor. More...
 
 ~EditorMaterialListener ()=default
 Destructor. More...
 
virtual Ogre::Technique * handleSchemeNotFound (uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *_rend)
 Ogre callback that is used to specify the material to use when the requested scheme is not found. More...
 

Detailed Description

Ogre material listener.

Constructor & Destructor Documentation

EditorMaterialListener ( const rendering::CameraPtr _camera)
explicit

Constructor.

Parameters
[in]_cameraPointer to the camera whose viewport will be updated to see the effect of the material switch.
~EditorMaterialListener ( )
default

Destructor.

Member Function Documentation

virtual Ogre::Technique* handleSchemeNotFound ( uint16_t  _schemeIndex,
const Ogre::String &  _schemeName,
Ogre::Material *  _originalMaterial,
uint16_t  _lodIndex,
const Ogre::Renderable *  _rend 
)
virtual

Ogre callback that is used to specify the material to use when the requested scheme is not found.

Parameters
[in]_schemeIndexIndex of scheme requested
[in]_schemeNameName of scheme requested
[in]_originalMaterialOrignal material that does not contain the requested scheme
[in]_lodIndexThe material level-of-detail
[in]_rendPointer 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: