A Window implemented using GLUT. More...
#include <GlutWindow.h>
Public Member Functions | |
GlutWindow (const Window::Parameters ¶ms) | |
Creates a new window. | |
virtual | ~GlutWindow () |
Deletes this window. | |
virtual int | getWidth () const |
Returns the width of the window. | |
virtual int | getHeight () const |
Returns the height of the window. | |
virtual void | start () |
Starts the user interface event processing loop. | |
virtual void | redisplay (double t, double dt) |
This method is called when a window must be redrawn. | |
virtual void | reshape (int x, int y) |
This method is called when a window is resized. | |
virtual void | idle (bool damaged) |
This method is called periodically when no event occur. |
A Window implemented using GLUT.
ork::GlutWindow::GlutWindow | ( | const Window::Parameters & | params | ) |
Creates a new window.
If the window size is 0,0 a full screen window is created.
params | the parameters of the window. |
virtual ork::GlutWindow::~GlutWindow | ( | ) | [virtual] |
Deletes this window.
virtual int ork::GlutWindow::getHeight | ( | ) | const [virtual] |
Returns the height of the window.
Implements ork::Window.
virtual int ork::GlutWindow::getWidth | ( | ) | const [virtual] |
Returns the width of the window.
Implements ork::Window.
virtual void ork::GlutWindow::idle | ( | bool | damaged | ) | [virtual] |
This method is called periodically when no event occur.
damaged | true if the window (partial) visibility has changed since the last call to this method. This occurs if the window is minized, maximized or if it is partially covered by another window. |
Reimplemented from ork::EventHandler.
virtual void ork::GlutWindow::redisplay | ( | double | t, | |
double | dt | |||
) | [virtual] |
This method is called when a window must be redrawn.
t | the current time in micro-seconds. | |
dt | the elapsed time in micro-seconds since the last call to redisplay. |
Reimplemented from ork::EventHandler.
virtual void ork::GlutWindow::reshape | ( | int | x, | |
int | y | |||
) | [virtual] |
This method is called when a window is resized.
x | the new window width. | |
y | the new window height. |
Reimplemented from ork::EventHandler.
virtual void ork::GlutWindow::start | ( | ) | [virtual] |
Starts the user interface event processing loop.
Implements ork::Window.