1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 17:19:56 +00:00
openmw-tes3mp/apps/opencs/view/render/scenewidget.hpp

48 lines
875 B
C++
Raw Normal View History

2013-11-02 01:48:30 +00:00
#ifndef OPENCS_VIEW_SCENEWIDGET_H
#define OPENCS_VIEW_SCENEWIDGET_H
#include <QWidget>
namespace Ogre
{
class Camera;
class SceneManager;
class RenderWindow;
}
namespace CSVRender
{
class SceneWidget : public QWidget
{
Q_OBJECT
public:
2013-11-02 01:48:30 +00:00
enum NavigationMode
{
NavigationMode_Free
};
2013-11-02 01:48:30 +00:00
SceneWidget(QWidget *parent);
virtual ~SceneWidget(void);
2013-11-02 01:48:30 +00:00
QPaintEngine* paintEngine() const;
2013-11-02 01:48:30 +00:00
private:
void paintEvent(QPaintEvent* e);
void resizeEvent(QResizeEvent* e);
bool event(QEvent* e);
void updateOgreWindow();
2013-11-02 01:48:30 +00:00
Ogre::Camera* mCamera;
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
NavigationMode mNavigationMode;
};
2013-11-02 01:48:30 +00:00
}
#endif