aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h
new file mode 100644
index 0000000..7827b4b
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CGUIMeshViewer.h
@@ -0,0 +1,61 @@
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 __C_GUI_MESH_VIEWER_H_INCLUDED__
6#define __C_GUI_MESH_VIEWER_H_INCLUDED__
7
8#include "IrrCompileConfig.h"
9#ifdef _IRR_COMPILE_WITH_GUI_
10
11#include "IGUIMeshViewer.h"
12#include "SMaterial.h"
13
14namespace irr
15{
16
17namespace gui
18{
19
20 class CGUIMeshViewer : public IGUIMeshViewer
21 {
22 public:
23
24 //! constructor
25 CGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
26
27 //! destructor
28 virtual ~CGUIMeshViewer();
29
30 //! sets the mesh to be shown
31 virtual void setMesh(scene::IAnimatedMesh* mesh);
32
33 //! Gets the displayed mesh
34 virtual scene::IAnimatedMesh* getMesh() const;
35
36 //! sets the material
37 virtual void setMaterial(const video::SMaterial& material);
38
39 //! gets the material
40 virtual const video::SMaterial& getMaterial() const;
41
42 //! called if an event happened.
43 virtual bool OnEvent(const SEvent& event);
44
45 //! draws the element and its children
46 virtual void draw();
47
48 private:
49
50 video::SMaterial Material;
51 scene::IAnimatedMesh* Mesh;
52 };
53
54
55} // end namespace gui
56} // end namespace irr
57
58#endif // _IRR_COMPILE_WITH_GUI_
59
60#endif // __C_GUI_MESH_VIEWER_H_INCLUDED__
61