Irrlicht 3D Engine
IGUIMeshViewer.h
Go to the documentation of this file.
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_GUI_MESH_VIEWER_H_INCLUDED__
6 #define __I_GUI_MESH_VIEWER_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 
10 namespace irr
11 {
12 
13 namespace video
14 {
15  class SMaterial;
16 } // end namespace video
17 
18 namespace scene
19 {
20  class IAnimatedMesh;
21 } // end namespace scene
22 
23 namespace gui
24 {
25 
27  class IGUIMeshViewer : public IGUIElement
28  {
29  public:
30 
32  IGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
33  : IGUIElement(EGUIET_MESH_VIEWER, environment, parent, id, rectangle) {}
34 
36  virtual void setMesh(scene::IAnimatedMesh* mesh) = 0;
37 
39  virtual scene::IAnimatedMesh* getMesh() const = 0;
40 
42  virtual void setMaterial(const video::SMaterial& material) = 0;
43 
45  virtual const video::SMaterial& getMaterial() const = 0;
46  };
47 
48 
49 } // end namespace gui
50 } // end namespace irr
51 
52 #endif
53 
3d mesh viewing GUI element.
virtual void setMesh(scene::IAnimatedMesh *mesh)=0
Sets the mesh to be shown.
virtual void setMaterial(const video::SMaterial &material)=0
Sets the material.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
GUI Environment. Used as factory and manager of all other GUI elements.
virtual scene::IAnimatedMesh * getMesh() const =0
Gets the displayed mesh.
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
Base class of all GUI elements.
Definition: IGUIElement.h:23
A mesh viewer (IGUIMeshViewer)
virtual const video::SMaterial & getMaterial() const =0
Gets the material.
Interface for an animated mesh.
Definition: IAnimatedMesh.h:20
Struct for holding parameters for a material renderer.
Definition: SMaterial.h:286
IGUIMeshViewer(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor