Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

GLApplication Class Reference

OpenGL based application. More...

#include <GLApplication.h>

Inherits Application.

Inheritance diagram for GLApplication:

Inheritance graph
[legend]
Collaboration diagram for GLApplication:

Collaboration graph
[legend]
List of all members.

Public Methods

 GLApplication ()
 Default constructor.

void addWindow (GLWindow *w)
 Add a window to be handled by the OpenGL application.

int start ()
 Runs the application.


Static Public Methods

const GLApplication::ModeGLApplication::getFullScreenMode ()
 Return the default fullscreen mode.

bool fullscreen (bool flag)
 Switches the system to fullscreen mode and back. More...


Protected Attributes

bool active
 True iff the application is active.

GLWindowwindow
 OpenGL window that is owned by the application.


Detailed Description

OpenGL based application.

Todo:
Port to Linux X11.

Handle multiple OpenGL windows.

A GLApplication has a set of OpenGL windows (currently only one) that are feeded with keyboard and mouse input and are refreshed continously.

See also:
GLWindow


Member Function Documentation

bool GLApplication::fullscreen bool    flag [static]
 

Switches the system to fullscreen mode and back.

Switches the system to original mode (non-fullscreen) when currently in fullscreen and vice versa. Displays a message box when the system could not switch to fullscreen mode.

Parameters:
flag  New fullscreen mode.
Precondition:
none.
Postcondition:
The system has been switch to or from fullscreen mode and the fs attribute is updated.
Returns:
True iff succesfull.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.