Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

GlutMaster Class Reference
[GLUT Master]

GlutMaster C++ Wrapper for GLUT event loop. More...

#include <master.h>

List of all members.

Static Public Methods

void init ()
 Initialise GLUT.

void init (int argc, char *argv[])
 Initialise GLUT with command-line parameters.

void mainLoop ()
 Enter the GLUT event loop.

int getScreenWidth ()
 Get the width of the screen in pixels.

int getScreenHeight ()
 Get the height of the screen in pixels.

int getScreenWidthMm ()
 Get the width of the screen in mm.

int getScreenHeightMm ()
 Get the height of the screen in mm.

int getElapsedTime ()
 Get the elapsed time (in sec).


Detailed Description

GlutMaster C++ Wrapper for GLUT event loop.

Author:
Nigel Stewart (nigels.com@gmail.com) , George Stetten and Korin Crawford (stetten@acpub.duke.edu)
Adapted from original public domain version by George Stetten and Korin Crawford beta version 0.3 - 9/9/97

Enhancements for GlutMaster

Todo:
SDL backend

KDE/Qt backend

GTK backend

Improve seperation between GlutMaster interface and back-ends

Definition at line 67 of file master.h.


Member Function Documentation

void GlutMaster::init   [static]
 

Initialise GLUT.

Note:
Manual initialisation of GLUT is optional.
GLUT can only be initialised once.
Initialisation should be done before any windows are created.

Definition at line 236 of file master.cpp.

Referenced by mainLoop().

void GlutMaster::init int    argc,
char *    argv[]
[static]
 

Initialise GLUT with command-line parameters.

Note:
Manual initialisation of GLUT is optional.
GLUT can only be initialised once.
Initialisation should be done before any windows are created.

Definition at line 210 of file master.cpp.

void GlutMaster::mainLoop   [static]
 

Enter the GLUT event loop.

Note:
No windows will receive events until the event loop has started.
According to GLUT specification, this function never returns.

Definition at line 245 of file master.cpp.

References init().


The documentation for this class was generated from the following files:
Generated on Tue Nov 5 11:11:47 2002 for GLT by doxygen1.2.18