Gazebo Rendering

API Reference

7.4.2
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 More...
 
 ~OgreRenderTargetMaterial ()
 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

◆ OgreRenderTargetMaterial()

OgreRenderTargetMaterial ( OgreScenePtr  _scene,
Ogre::RenderTarget *  _renderTarget,
Ogre::Material *  _material 
)

constructor

Parameters
[in]_scenethe scene manager responsible for rendering
[in]_renderTargetthe RenderTarget this should apply to
[in]_materialthe material to apply to all renderables

◆ ~OgreRenderTargetMaterial()

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

Ogre callback that assigned same material to all renderables 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: