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 __I_GUI_MESH_VIEWER_H_INCLUDED__
\r
6 #define __I_GUI_MESH_VIEWER_H_INCLUDED__
\r
8 #include "IGUIElement.h"
\r
16 } // end namespace video
\r
20 class IAnimatedMesh;
\r
21 } // end namespace scene
\r
26 //! 3d mesh viewing GUI element.
\r
27 class IGUIMeshViewer : public IGUIElement
\r
32 IGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
\r
33 : IGUIElement(EGUIET_MESH_VIEWER, environment, parent, id, rectangle) {}
\r
35 //! Sets the mesh to be shown
\r
36 virtual void setMesh(scene::IAnimatedMesh* mesh) = 0;
\r
38 //! Gets the displayed mesh
\r
39 virtual scene::IAnimatedMesh* getMesh() const = 0;
\r
41 //! Sets the material
\r
42 virtual void setMaterial(const video::SMaterial& material) = 0;
\r
44 //! Gets the material
\r
45 virtual const video::SMaterial& getMaterial() const = 0;
\r
49 } // end namespace gui
\r
50 } // end namespace irr
\r