b3view/View.h

28 lines
530 B
C
Raw Normal View History

2010-04-21 07:48:36 -07:00
#ifndef VIEW_H
#define VIEW_H
2019-03-07 08:12:09 -08:00
#include <irrlicht/irrlicht.h>
2010-04-21 07:48:36 -07:00
class Engine;
class View : public irr::IEventReceiver
2010-04-21 07:48:36 -07:00
{
private:
Engine *m_Engine;
irr::f32 m_Yaw, m_Pitch, m_CameraDistance;
irr::core::vector2d<int> *m_LastMousePosition;
2010-04-21 07:48:36 -07:00
bool m_RotMouse;
void setNewCameraPosition();
void setNewLightDirection( const irr::core::vector3df &cameraPosition );
2010-04-21 07:48:36 -07:00
public:
View( Engine *engine );
~View();
// IEventReceiver
virtual bool OnEvent( const irr::SEvent &event );
2010-04-21 07:48:36 -07:00
};
#endif // VIEW_H