13 #include <QWheelEvent>
39 QScopedPointer<AbstractScene> mScene;
101 QOpenGLContext *mContext;
103 bool mLeftMouseButton;
104 bool mRightMouseButton;
void paintGl()
A protected slot member function to paint the OpenGL context.
Definition: window.cpp:59
void updateScene()
A protected slot member function to update the scene.
Definition: window.cpp:72
virtual void mousePressEvent(QMouseEvent *event)
A virtual member function to process mouse press events.
Definition: window.cpp:78
void resizeGl()
A protected slot member function to resize the OpenGL context.
Definition: window.cpp:66
~Window()
Destructor.
Definition: window.cpp:44
Abstract class for a scene.
void compileShader()
A member function to call a GLSL shader compile during runtime.
Definition: window.cpp:48
virtual void mouseReleaseEvent(QMouseEvent *event)
A virtual member function to process mouse release events.
Definition: window.cpp:91
virtual void mouseMoveEvent(QMouseEvent *event)
A virtual member function to process mouse move events.
Definition: window.cpp:106
Window()
Default constructor.
Definition: window.cpp:9
virtual void wheelEvent(QWheelEvent *event)
A virtual member function to process mouse wheel events.
Definition: window.cpp:101
void loadModelFromPath(const std::string absoluteFilePath)
A public slot member function to load a model from an absolute file path.
Definition: window.cpp:127