##

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()

EditorMaterialListener | ( | const rendering::CameraPtr & | _camera | ) |

explicit

Constructor.

Parameters

  [in] | _camera | Pointer to the camera whose viewport will be updated to see the effect of the material switch.

## ~EditorMaterialListener()

~EditorMaterialListener | ( |  | ) |

default

Destructor.

## Member Function Documentation

## handleSchemeNotFound()

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] | _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:

- EditorMaterialSwitcher.hh