#include <OpenGUI_ScreenManager.h>
Public Member Functions | |
| Screen * | createScreen (const String &screenName, const FVector2 &initialSize, Viewport *viewport=0) |
Creates a new screen with the given screenName at the given initialSize, rendering to the given viewport. | |
| void | destroyScreen (Screen *screenPtr) |
| destroys the given screen | |
| Screen * | getScreen (const String &screenName) |
| returns the requested screen by name, or 0 on failure | |
| void | updateScreens () |
| performs an update on all screens that are auto updating | |
| void | updateTime () |
| performs time injections on all screens that are auto timing using TimerManager as the time source | |
| iterator | getIterator () |
| returns an iterator to walk the current list of screens | |
| float | statGetFPS () |
| Returns the current FPS. | |
Static Public Member Functions | |
| static ScreenManager & | getSingleton (void) |
| Retrieve the current singleton, if one exists. If none exists, this will cause an error. | |
| static ScreenManager * | getSingletonPtr (void) |
| Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0. | |
|
||||||||||||||||
|
Creates a new screen with the given
The |
|
|
destroys the given screen
|
|
|
returns an iterator to walk the current list of screens The Key half of the iterator is the Screen name (String), the Value half is a pointer to the Screen (Screen *) |
|
|
returns the requested screen by name, or 0 on failure
|
|
|
Retrieve the current singleton, if one exists. If none exists, this will cause an error.
|
|
|
Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0.
|
|
|
Returns the current FPS. The FPS value returned is an average over the last 5 frames. If less than 5 frames have been rendered, then the average is based on as many frames as available. If no frames have been rendered, the returned value will be 0.0f.
|
|
|
performs an update on all screens that are auto updating
|
|
|
performs time injections on all screens that are auto timing using TimerManager as the time source
|