a class consists of static functions to access global objects in ParaEngine, such as Current Root Scene, physical world object, terrain, asset manager, environment simulator, 2d GUI root, etc.
More...
#include <Globals.h>
a class consists of static functions to access global objects in ParaEngine, such as Current Root Scene, physical world object, terrain, asset manager, environment simulator, 2d GUI root, etc.
§ GetApp()
get the application interface.
§ GetAppHWND()
HWND CGlobals::GetAppHWND |
( |
| ) |
|
|
static |
- Returns
- application handle
§ GetFrameRateController()
get a given frame rate controller used by the game engine.
§ GetIdentityMatrix()
const Matrix4 * CGlobals::GetIdentityMatrix |
( |
| ) |
|
|
static |
§ GetNPLRuntime()
get the current NPL runtime environment.
§ GetSceneState()
get the scene state information.
The scene state contains information about the current simulation and render states.Such as which scene object is being animated or rendered, etc
§ GetString()
const string & CGlobals::GetString |
( |
int |
nStringID = 0 | ) |
|
|
static |
get static string used in the game engine.
- Parameters
-
nStringID | if this is 0, "" is returned. see GLOBAL_STRING_ID |
§ GetWorldMatrixStack()
world matrix stack.
One can use it to keep track of matrices. It will be automatically reset at the beginning of each frame move
§ IsLoading()
bool CGlobals::IsLoading |
( |
| ) |
|
|
static |
check whether the scene is loading.
We may display some progress bar to inform the user
§ SetLoading()
void CGlobals::SetLoading |
( |
bool |
bIsLoading | ) |
|
|
static |
set whether the scene is loading.
§ WillGenReport()
bool CGlobals::WillGenReport |
( |
const char * |
itemName = NULL | ) |
|
|
static |
return whether frame based report will be generated for a specified item, itemName: name of the report item to check, this can be NULL.
- Returns
- : return true if report should be generated.
The documentation for this class was generated from the following files:
- Client/trunk/ParaEngineClient/Core/Globals.h
- Client/trunk/ParaEngineClient/Core/Globals.cpp