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
5 #ifndef __C_GUI_MESH_VIEWER_H_INCLUDED__
\r
6 #define __C_GUI_MESH_VIEWER_H_INCLUDED__
\r
8 #include "IrrCompileConfig.h"
\r
9 #ifdef _IRR_COMPILE_WITH_GUI_
\r
11 #include "IGUIMeshViewer.h"
\r
12 #include "SMaterial.h"
\r
20 class CGUIMeshViewer : public IGUIMeshViewer
\r
25 CGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
\r
28 virtual ~CGUIMeshViewer();
\r
30 //! sets the mesh to be shown
\r
31 virtual void setMesh(scene::IAnimatedMesh* mesh) _IRR_OVERRIDE_;
\r
33 //! Gets the displayed mesh
\r
34 virtual scene::IAnimatedMesh* getMesh() const _IRR_OVERRIDE_;
\r
36 //! sets the material
\r
37 virtual void setMaterial(const video::SMaterial& material) _IRR_OVERRIDE_;
\r
39 //! gets the material
\r
40 virtual const video::SMaterial& getMaterial() const _IRR_OVERRIDE_;
\r
42 //! called if an event happened.
\r
43 virtual bool OnEvent(const SEvent& event) _IRR_OVERRIDE_;
\r
45 //! draws the element and its children
\r
46 virtual void draw() _IRR_OVERRIDE_;
\r
50 video::SMaterial Material;
\r
51 scene::IAnimatedMesh* Mesh;
\r
55 } // end namespace gui
\r
56 } // end namespace irr
\r
58 #endif // _IRR_COMPILE_WITH_GUI_
\r
60 #endif // __C_GUI_MESH_VIEWER_H_INCLUDED__
\r