#ifndef __C_GUI_MESH_VIEWER_H_INCLUDED__
#define __C_GUI_MESH_VIEWER_H_INCLUDED__
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUIMeshViewer.h"
#include "SMaterial.h"
namespace irr
{
namespace gui
{
class CGUIMeshViewer : public IGUIMeshViewer
{
public:
CGUIMeshViewer(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
virtual ~CGUIMeshViewer();
virtual void setMesh(scene::IAnimatedMesh* mesh);
virtual scene::IAnimatedMesh* getMesh() const;
virtual void setMaterial(const video::SMaterial& material);
virtual const video::SMaterial& getMaterial() const;
virtual bool OnEvent(const SEvent& event);
virtual void draw();
private:
video::SMaterial Material;
scene::IAnimatedMesh* Mesh;
};
}
}
#endif
#endif