Ignition Rendering

API Reference

5.0.0

#include <OgreMesh.hh>

Public Member Functions

virtual ~OgreSubMesh ()
 
virtual void Destroy () override
 Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More...
 
virtual Ogre::SubEntity * OgreSubEntity () const
 
- Public Member Functions inherited from BaseSubMesh< OgreObject >
virtual ~BaseSubMesh ()
 
virtual MaterialPtr Material () const override
 Get the currently assigned material. More...
 
virtual void PreRender () override
 Prepare this object and any of its children for rendering. This should be called for each object in a scene just before rendering, which can be achieved by a single call to Scene::PreRender. More...
 
virtual void SetMaterial (const std::string &_name, bool _unique=true) override
 Set the materials of this SubMesh. The specified material will be retrieved from the parent Scene. If no material is registered by the given name, no work will be done. More...
 
virtual void SetMaterial (MaterialPtr _material, bool _unique=true) override
 Set the materials of this SubMesh. More...
 
- Public Member Functions inherited from SubMesh
virtual ~SubMesh ()
 Destructor. More...
 
- Public Member Functions inherited from Object
virtual ~Object ()
 Destructor. More...
 
virtual unsigned int Id () const =0
 Get the object ID. This ID will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual std::string Name () const =0
 Get the object name. This name will be unique across all objects inside a given scene, but necessarily true for objects across different scenes. More...
 
virtual void PostRender ()=0
 Post process this object and any of its children after rendering. More...
 
virtual ScenePtr Scene () const =0
 Get the Scene that created this object. More...
 
- Public Member Functions inherited from OgreObject
virtual ~OgreObject ()
 
virtual ScenePtr Scene () const
 
- Public Member Functions inherited from BaseObject
virtual ~BaseObject ()
 
virtual unsigned int Id () const override
 
virtual std::string Name () const override
 
virtual void PostRender () override
 

Protected Member Functions

 OgreSubMesh ()
 
virtual void Init () override
 
virtual void SetMaterialImpl (MaterialPtr _material) override
 Engine implementation for setting the material of this SubMesh. More...
 
- Protected Member Functions inherited from BaseSubMesh< OgreObject >
 BaseSubMesh ()
 
- Protected Member Functions inherited from OgreObject
 OgreObject ()
 
- Protected Member Functions inherited from BaseObject
 BaseObject ()
 
virtual void Load ()
 

Protected Attributes

Ogre::SubEntity * ogreSubEntity
 
- Protected Attributes inherited from BaseSubMesh< OgreObject >
MaterialPtr material
 Pointer to currently assigned material. More...
 
bool ownsMaterial
 Flag to indicate whether or not this submesh should be responsible for destroying the material. More...
 
- Protected Attributes inherited from OgreObject
OgreScenePtr scene
 
- Protected Attributes inherited from BaseObject
unsigned int id
 
std::string name
 

Constructor & Destructor Documentation

◆ OgreSubMesh()

OgreSubMesh ( )
protected

◆ ~OgreSubMesh()

virtual ~OgreSubMesh ( )
virtual

Member Function Documentation

◆ Destroy()

virtual void Destroy ( )
overridevirtual

Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior.

Reimplemented from BaseSubMesh< OgreObject >.

◆ Init()

virtual void Init ( )
overrideprotectedvirtual

Reimplemented from BaseObject.

◆ OgreSubEntity()

virtual Ogre::SubEntity* OgreSubEntity ( ) const
virtual

◆ SetMaterialImpl()

virtual void SetMaterialImpl ( MaterialPtr  _material)
overrideprotectedvirtual

Engine implementation for setting the material of this SubMesh.

Parameters
[in]_materialNew Material to be assigned

Implements BaseSubMesh< OgreObject >.

Member Data Documentation

◆ ogreSubEntity

Ogre::SubEntity* ogreSubEntity
protected

The documentation for this class was generated from the following file: