Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIMeshViewer.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_GUI_MESH_VIEWER_HPP_INCLUDED
6#define NIRT_I_GUI_MESH_VIEWER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IGUIElement.hpp>
9
10namespace nirt
11{
12
13namespace video
14{
15 class SMaterial;
16} // end namespace video
17
18namespace scene
19{
20 class IAnimatedMesh;
21} // end namespace scene
22
23namespace gui
24{
25
28 {
29 public:
30
32 IGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
33 : IGUIElement(EGUIET_MESH_VIEWER, environment, parent, id, rectangle) {}
34
36 virtual void setMesh(scene::IAnimatedMesh* mesh) = 0;
37
39 virtual scene::IAnimatedMesh* getMesh() const = 0;
40
42 virtual void setMaterial(const video::SMaterial& material) = 0;
43
45 virtual const video::SMaterial& getMaterial() const = 0;
46 };
47
48
49} // end namespace gui
50} // end namespace nirt
51
52#endif
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
Base class of all GUI elements.
Definition IGUIElement.hpp:24
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
3d mesh viewing GUI element.
Definition IGUIMeshViewer.hpp:28
virtual scene::IAnimatedMesh * getMesh() const =0
Gets the displayed mesh.
virtual void setMesh(scene::IAnimatedMesh *mesh)=0
Sets the mesh to be shown.
IGUIMeshViewer(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIMeshViewer.hpp:32
virtual void setMaterial(const video::SMaterial &material)=0
Sets the material.
virtual const video::SMaterial & getMaterial() const =0
Gets the material.
Interface for an animated mesh.
Definition IAnimatedMesh.hpp:21
Struct for holding parameters for a material renderer.
Definition SMaterial.hpp:304
@ EGUIET_MESH_VIEWER
A mesh viewer (IGUIMeshViewer)
Definition EGUIElementTypes.hpp:53
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print