Loading...
Searching...
No Matches
IGUIMeshViewer.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_MESH_VIEWER_H_INCLUDED__
#define __I_GUI_MESH_VIEWER_H_INCLUDED__
#include "IGUIElement.h"
namespace irr
{
namespace video
{
class SMaterial;
} // end namespace video
namespace scene
{
class IAnimatedMesh;
} // end namespace scene
namespace gui
{
class IGUIMeshViewer : public IGUIElement
{
public:
IGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_MESH_VIEWER, environment, parent, id, rectangle) {}
virtual void setMesh(scene::IAnimatedMesh* mesh) = 0;
virtual scene::IAnimatedMesh* getMesh() const = 0;
virtual void setMaterial(const video::SMaterial& material) = 0;
virtual const video::SMaterial& getMaterial() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
IGUIElement.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUIMeshViewer::getMaterial
virtual const video::SMaterial & getMaterial() const =0
Gets the material.
irr::gui::IGUIMeshViewer::setMesh
virtual void setMesh(scene::IAnimatedMesh *mesh)=0
Sets the mesh to be shown.
irr::gui::IGUIMeshViewer::IGUIMeshViewer
IGUIMeshViewer(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIMeshViewer.h:32
irr::gui::IGUIMeshViewer::getMesh
virtual scene::IAnimatedMesh * getMesh() const =0
Gets the displayed mesh.
irr::gui::IGUIMeshViewer::setMaterial
virtual void setMaterial(const video::SMaterial &material)=0
Sets the material.
irr::scene::IAnimatedMesh
Interface for an animated mesh.
Definition IAnimatedMesh.h:63
irr::video::SMaterial
Struct for holding parameters for a material renderer.
Definition SMaterial.h:227
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUIET_MESH_VIEWER
@ EGUIET_MESH_VIEWER
A mesh viewer (IGUIMeshViewer).
Definition EGUIElementTypes.h:53
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::video
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0