ork::GlutWindow Class Reference
[ui]

A Window implemented using GLUT. More...

#include <GlutWindow.h>

Inheritance diagram for ork::GlutWindow:
ork::Window ork::EventHandler ork::Object

List of all members.

Public Member Functions

 GlutWindow (const Window::Parameters &params)
 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.

Detailed Description

A Window implemented using GLUT.


Constructor & Destructor Documentation

ork::GlutWindow::GlutWindow ( const Window::Parameters params  ) 

Creates a new window.

If the window size is 0,0 a full screen window is created.

Parameters:
params the parameters of the window.
virtual ork::GlutWindow::~GlutWindow (  )  [virtual]

Deletes this window.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


Generated on Mon Oct 18 09:36:12 2010 for ork by  doxygen 1.6.1