Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
A scene node displaying a static mesh. More...
#include <IMeshSceneNode.h>
Public Member Functions | |
virtual IMesh * | getMesh (void)=0 |
Get the currently defined mesh for display. | |
IMeshSceneNode (ISceneNode *parent, ISceneManager *mgr, s32 id, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1, 1, 1)) | |
Constructor. | |
virtual bool | isReadOnlyMaterials () const =0 |
Check if the scene node should not copy the materials of the mesh but use them in a read only style. | |
virtual void | setMesh (IMesh *mesh)=0 |
Sets a new mesh to display. | |
virtual void | setReadOnlyMaterials (bool readonly)=0 |
Sets if the scene node should not copy the materials of the mesh but use them in a read only style. |
A scene node displaying a static mesh.
Definition at line 19 of file IMeshSceneNode.h.
irr::scene::IMeshSceneNode::IMeshSceneNode | ( | ISceneNode * | parent, | |
ISceneManager * | mgr, | |||
s32 | id, | |||
const core::vector3df & | position = core::vector3df(0,0,0) , |
|||
const core::vector3df & | rotation = core::vector3df(0,0,0) , |
|||
const core::vector3df & | scale = core::vector3df(1,1,1) | |||
) | [inline] |
Constructor.
Use setMesh() to set the mesh to display.
Definition at line 26 of file IMeshSceneNode.h.
virtual IMesh* irr::scene::IMeshSceneNode::getMesh | ( | void | ) | [pure virtual] |
Get the currently defined mesh for display.
virtual bool irr::scene::IMeshSceneNode::isReadOnlyMaterials | ( | ) | const [pure virtual] |
Check if the scene node should not copy the materials of the mesh but use them in a read only style.
This flag can be set by setReadOnlyMaterials().
virtual void irr::scene::IMeshSceneNode::setMesh | ( | IMesh * | mesh | ) | [pure virtual] |
Sets a new mesh to display.
mesh | Mesh to display. |
virtual void irr::scene::IMeshSceneNode::setReadOnlyMaterials | ( | bool | readonly | ) | [pure virtual] |
Sets if the scene node should not copy the materials of the mesh but use them in a read only style.
In this way it is possible to change the materials of a mesh causing all mesh scene nodes referencing this mesh to change, too.
readonly | Flag if the materials shall be read-only. |
The Irrlicht
Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated
on Sun Oct 24 12:42:07 2010 by Doxygen
(1.6.2) |