It acts as a controller between render, logic and user interaction. It's executed by GlutWrapper::Window through GlutWrapper::IRunner interface. Also the right mouse menus are defined through GlutWrapper::IMenuListener (GetMenuEntries method). More...
#include <Runner.h>
Public Member Functions | |
| Runner (int width, int height) | |
| Constructor. | |
| ~Runner (void) | |
| Destructor. | |
| void | InitializeOpengl (void) |
| Creates opengl context and initialize some opengl states. | |
| void | Run (float elapsedTime) |
| It runs a step of the test. It renders the string points, segments or triangles (if they are enabled). | |
| void | Reshape (int width, int height) |
| It configs opengl with the new render window width and height. | |
| void | ProcessMenuEvents (int option) |
| It process the events sent from right button mouse menu. Depending on the event it calls logic methods. | |
| void | ProcessMouse (const GlutWrapper::MouseState &mouseState) |
| It processes the mouse events. | |
| const std::vector < GlutWrapper::MenuEntry > & | GetMenuEntries (void) const |
| It gets the entries of the right button mouse menu. | |
It acts as a controller between render, logic and user interaction. It's executed by GlutWrapper::Window through GlutWrapper::IRunner interface. Also the right mouse menus are defined through GlutWrapper::IMenuListener (GetMenuEntries method).
| const std::vector< GlutWrapper::MenuEntry > & Runner::GetMenuEntries | ( | void | ) | const |
It gets the entries of the right button mouse menu.
| void Runner::InitializeOpengl | ( | void | ) | [virtual] |
Creates opengl context and initialize some opengl states.
Implements GlutWrapper::IRunner.
| void Runner::ProcessMenuEvents | ( | int | option | ) | [virtual] |
It process the events sent from right button mouse menu. Depending on the event it calls logic methods.
| option | the menu option |
Implements GlutWrapper::IMenuListener.
| void Runner::ProcessMouse | ( | const GlutWrapper::MouseState & | mouseState | ) | [virtual] |
It processes the mouse events.
| mouseState | state of the mouse |
Implements GlutWrapper::IMouseListener.
| void Runner::Reshape | ( | int | width, | |
| int | height | |||
| ) | [virtual] |
It configs opengl with the new render window width and height.
| width | new render window width | |
| height | new render window height |
Implements GlutWrapper::IRunner.
| void Runner::Run | ( | float | elapsedTime | ) | [virtual] |
It runs a step of the test. It renders the string points, segments or triangles (if they are enabled).
Implements GlutWrapper::IRunner.
1.6.2