OgreSubMesh Class Reference
#include <OgreMesh.hh>
Public Member Functions | |
virtual | ~OgreSubMesh () |
virtual void | Destroy () |
Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior. More... | |
virtual MaterialPtr | Material () const |
Get the currently assigned material. More... | |
virtual Ogre::SubEntity * | OgreSubEntity () const |
virtual void | SetMaterial (MaterialPtr _material, bool _unique=true) |
Set the materials of this SubMesh. More... | |
Public Member Functions inherited from BaseSubMesh< OgreObject > | |
virtual | ~BaseSubMesh () |
virtual void | PreRender () |
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) |
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... | |
Public Member Functions inherited from SubMesh | |
virtual | ~SubMesh () |
Deconstructor. More... | |
Public Member Functions inherited from Object | |
virtual | ~Object () |
Deconstructor. More... | |
Public Member Functions inherited from OgreObject | |
virtual | ~OgreObject () |
virtual ScenePtr | Scene () const |
Get the Scene that created this object. More... | |
Public Member Functions inherited from BaseObject | |
virtual | ~BaseObject () |
virtual unsigned int | Id () const |
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 |
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... | |
Public Member Functions inherited from enable_shared_from_this< BaseObject > | |
T | enable_shared_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
Protected Member Functions | |
OgreSubMesh () | |
virtual void | Init () |
virtual void | SetMaterialImpl (OgreMaterialPtr _material) |
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 | |
OgreMaterialPtr | material |
Ogre::SubEntity * | ogreSubEntity |
Protected Attributes inherited from OgreObject | |
OgreScenePtr | scene |
Protected Attributes inherited from BaseObject | |
unsigned int | id |
std::string | name |
Constructor & Destructor Documentation
◆ OgreSubMesh()
|
protected |
◆ ~OgreSubMesh()
|
virtual |
Member Function Documentation
◆ Destroy()
|
virtual |
Destroy any resources associated with this object. Invoking any other functions after destroying an object will result in undefined behavior.
Reimplemented from BaseObject.
◆ Init()
|
protectedvirtual |
Reimplemented from BaseObject.
◆ Material()
|
virtual |
Get the currently assigned material.
- Returns
- The currently assigned material
Implements BaseSubMesh< OgreObject >.
◆ OgreSubEntity()
|
virtual |
◆ SetMaterial()
|
virtual |
Set the materials of this SubMesh.
- Parameters
-
[in] _material New Material to be assigned [in] _unique True if the given material should be cloned
Implements BaseSubMesh< OgreObject >.
◆ SetMaterialImpl()
|
protectedvirtual |
Member Data Documentation
◆ material
|
protected |
◆ ogreSubEntity
|
protected |
The documentation for this class was generated from the following file: