Skylicht Engine
Loading...
Searching...
No Matches
IMeshSceneNode.h
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __I_MESH_SCENE_NODE_H_INCLUDED__
6#define __I_MESH_SCENE_NODE_H_INCLUDED__
7
8#include "ISceneNode.h"
9
10namespace irr
11{
12namespace scene
13{
14
15class IMesh;
16
17
20{
21public:
22
24
27 const core::vector3df& position = core::vector3df(0,0,0),
28 const core::vector3df& rotation = core::vector3df(0,0,0),
29 const core::vector3df& scale = core::vector3df(1,1,1))
30 : ISceneNode(parent, mgr, id, position, rotation, scale) {}
31
33
34 virtual void setMesh(IMesh* mesh) = 0;
35
37
38 virtual IMesh* getMesh(void) = 0;
39
41
44 virtual void setReadOnlyMaterials(bool readonly) = 0;
45
47
49 virtual bool isReadOnlyMaterials() const = 0;
50};
51
52} // end namespace scene
53} // end namespace irr
54
55
56#endif
57
Class which holds the geometry of an object.
Definition IMesh.h:24
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 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.
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.
Definition IMeshSceneNode.h:26
virtual IMesh * getMesh(void)=0
Get the currently defined mesh for display.
virtual void setMesh(IMesh *mesh)=0
Sets a new mesh to display.
The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff.
Definition ISceneManager.h:135
ISceneNode(ISceneNode *parent, ISceneManager *mgr, s32 id=-1, 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.0f, 1.0f, 1.0f))
Constructor.
Definition ISceneNode.h:45
vector3d< f32 > vector3df
Typedef for a f32 3d vector.
Definition vector3d.h:445
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CIndexBuffer.h:13
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
signed int s32
32 bit signed variable.
Definition irrTypes.h:66