]> git.lizzy.rs Git - irrlicht.git/blob - include/IGUIMeshViewer.h
Merging r6196 through r6248 from trunk to ogl-es branch
[irrlicht.git] / include / IGUIMeshViewer.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __I_GUI_MESH_VIEWER_H_INCLUDED__\r
6 #define __I_GUI_MESH_VIEWER_H_INCLUDED__\r
7 \r
8 #include "IGUIElement.h"\r
9 \r
10 namespace irr\r
11 {\r
12 \r
13 namespace video\r
14 {\r
15         class SMaterial;\r
16 } // end namespace video\r
17 \r
18 namespace scene\r
19 {\r
20         class IAnimatedMesh;\r
21 } // end namespace scene\r
22 \r
23 namespace gui\r
24 {\r
25 \r
26         //! 3d mesh viewing GUI element.\r
27         class IGUIMeshViewer : public IGUIElement\r
28         {\r
29         public:\r
30 \r
31                 //! constructor\r
32                 IGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)\r
33                         : IGUIElement(EGUIET_MESH_VIEWER, environment, parent, id, rectangle) {}\r
34 \r
35                 //! Sets the mesh to be shown\r
36                 virtual void setMesh(scene::IAnimatedMesh* mesh) = 0;\r
37 \r
38                 //! Gets the displayed mesh\r
39                 virtual scene::IAnimatedMesh* getMesh() const = 0;\r
40 \r
41                 //! Sets the material\r
42                 virtual void setMaterial(const video::SMaterial& material) = 0;\r
43 \r
44                 //! Gets the material\r
45                 virtual const video::SMaterial& getMaterial() const = 0;\r
46         };\r
47 \r
48 \r
49 } // end namespace gui\r
50 } // end namespace irr\r
51 \r
52 #endif\r
53 \r