]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CGUIMeshViewer.h
Fix some more problems with OSX build file.
[irrlicht.git] / source / Irrlicht / CGUIMeshViewer.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 __C_GUI_MESH_VIEWER_H_INCLUDED__\r
6 #define __C_GUI_MESH_VIEWER_H_INCLUDED__\r
7 \r
8 #include "IrrCompileConfig.h"\r
9 #ifdef _IRR_COMPILE_WITH_GUI_\r
10 \r
11 #include "IGUIMeshViewer.h"\r
12 #include "SMaterial.h"\r
13 \r
14 namespace irr\r
15 {\r
16 \r
17 namespace gui\r
18 {\r
19 \r
20         class CGUIMeshViewer : public IGUIMeshViewer\r
21         {\r
22         public:\r
23 \r
24                 //! constructor\r
25                 CGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);\r
26 \r
27                 //! destructor\r
28                 virtual ~CGUIMeshViewer();\r
29 \r
30                 //! sets the mesh to be shown\r
31                 virtual void setMesh(scene::IAnimatedMesh* mesh) _IRR_OVERRIDE_;\r
32 \r
33                 //! Gets the displayed mesh\r
34                 virtual scene::IAnimatedMesh* getMesh() const _IRR_OVERRIDE_;\r
35 \r
36                 //! sets the material\r
37                 virtual void setMaterial(const video::SMaterial& material) _IRR_OVERRIDE_;\r
38 \r
39                 //! gets the material\r
40                 virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_;\r
41 \r
42                 //! called if an event happened.\r
43                 virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;\r
44 \r
45                 //! draws the element and its children\r
46                 virtual void draw() _IRR_OVERRIDE_;\r
47 \r
48         private:\r
49 \r
50                 video::SMaterial Material;\r
51                 scene::IAnimatedMesh* Mesh;\r
52         };\r
53 \r
54 \r
55 } // end namespace gui\r
56 } // end namespace irr\r
57 \r
58 #endif // _IRR_COMPILE_WITH_GUI_\r
59 \r
60 #endif // __C_GUI_MESH_VIEWER_H_INCLUDED__\r
61 \r