our main UI window and contains a GLWindow widget used to hold our basic gl applications More...
#include <MainWindow.h>
Public Member Functions | |
MainWindow (QWidget *parent=0) | |
constructor | |
~MainWindow () | |
dtor free up the GLWindow and all resources | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *_event) |
override the keyPressEvent inherited from QObject so we can handle key presses. |
our main UI window and contains a GLWindow widget used to hold our basic gl applications
MainWindow::MainWindow | ( | QWidget * | parent = 0 |
) |
constructor
[in] | parent | the parent window the for this window |
MainWindow::~MainWindow | ( | ) |
dtor free up the GLWindow and all resources
virtual function to release the mainwindow
void MainWindow::keyPressEvent | ( | QKeyEvent * | _event | ) | [protected] |
override the keyPressEvent inherited from QObject so we can handle key presses.
this method is called every time the main window receives a key event. we then switch on the key value and set the camera in the GLWindow
[in] | _event | the event to process |