|
|
G3D::GApp Class Reference#include <GApp.h>
List of all members.
Detailed Description
See for a discussion of GApp and GApplet.
Constructor & Destructor Documentation
|
|
- Parameters:
-
| window | If null, a SDLWindow will be created for you. This argument is useful for substituting a different window system (e.g. GlutWindow) |
|
| virtual G3D::GApp::~GApp |
( |
|
) |
[virtual] |
|
Member Function Documentation
|
|
Installs a module. Actual insertion may be delayed until the next frame. See GApplet::addModule for further discussion.
- BETA API Likely to receive incompatible changes in future releases.
|
| bool G3D::GApp::debugMode |
( |
|
) |
const |
|
|
|
Returns the state of debugMode. All debugX options are only in effect when debugMode is also true. Default is false |
| virtual void G3D::GApp::debugPrintf |
( |
const char * |
fmt... |
) |
[virtual] |
|
|
|
If app->debugShowText is true, prints to an on-screen buffer that is cleared every frame. |
| const Stopwatch& G3D::GApp::graphicsWatch |
( |
|
) |
const [inline] |
|
| const Stopwatch& G3D::GApp::logicWatch |
( |
|
) |
const [inline] |
|
| virtual void G3D::GApp::main |
( |
|
) |
[protected, pure virtual] |
|
|
|
Called from run. This is invoked inside of several exception handlers so that any G3D uncaught exceptions can be logged instead of crashing the application. |
| const Stopwatch& G3D::GApp::networkWatch |
( |
|
) |
const [inline] |
|
| virtual void G3D::GApp::removeModule |
( |
const GModuleRef & |
module |
) |
[virtual] |
|
|
|
The actual removal of the module may be delayed until the next frame. See GApplet::removeModule for further discussion. - BETA API Likely to receive incompatible changes in future releases.
|
| virtual void G3D::GApp::renderDebugInfo |
( |
|
) |
[virtual] |
|
|
|
Called from GApplet::run immediately after doGraphics to render the debugging text. Does nothing if debugMode is false. It is not usually necessary to override this method. |
|
|
Call this to run the app. Subclasses should override main(), not run. |
| virtual void G3D::GApp::setDebugMode |
( |
bool |
b |
) |
[virtual] |
|
|
|
Changes the state of debugMode. You must separately activate the debugController if you want events to go to it (by default, the TAB key activates it). |
| const Stopwatch& G3D::GApp::simulationWatch |
( |
|
) |
const [inline] |
|
| const Stopwatch& G3D::GApp::userInputWatch |
( |
|
) |
const [inline] |
|
| const Stopwatch& G3D::GApp::waitWatch |
( |
|
) |
const [inline] |
|
| GWindow* G3D::GApp::window |
( |
|
) |
const [inline] |
|
Friends And Related Function Documentation
Member Data Documentation
|
|
When true and the window is resizable, automatically responds to SDL_RESIZE events by notifying the RenderDevice that the window has been resized and resetting the viewport to full screen. (default is true) |
|
|
When true, there is an assertion failure if an exception is thrown during GApp::main().
Default is true. |
|
|
Initialized to GApp::Settings::dataDir, or if that is "<AUTO>", to System::demoFindData(). To make your program distributable, override the default and copy all data files you need to a local directory. Recommended setting is "data/" or "./", depending on where you put your data relative to the executable.
Your data directory must contain the default debugging font, "console-small.fnt", unless you change it. |
|
|
A default camera that is driven by the debugController. |
|
|
When in debugMode, this allows first person (Quake game-style) control using the arrow keys or W,A,S,D and the mouse. - Deprecated:
- Will become a FirstPersonManipulatorRef in 7.00
|
|
|
When true and debugMode is true, an SDL_ESCAPE keydown event quits the program. (default is true) |
|
|
When debugMode is true and debugShowRenderingStats is true, renderDebugInfo prints the frame rate and other data to the screen. |
|
|
When true and debugMode is true, debugPrintf prints to the screen. (default is true) |
|
|
When true and debugMode is true, SDL_TAB keydown deactivates the camera and restores the mouse cursor. (default is true) |
|
|
Strings that have been printed with debugPrint. |
|
|
A global texture manager. |
The documentation for this class was generated from the following file:
Generated on Mon Jul 17 11:50:47 2006 for G3D by
1.4.5
Hosted by
|
|