Application framework.
More...
#include <App.h>
|
| App (const GApp::Settings &settings=GApp::Settings()) |
|
virtual void | endProgram () |
| Sets m_endProgram to true. More...
|
|
virtual void | loadScene (const String &sceneName) override |
| We changed this method so that it would not popup a loading scene method. More...
|
|
virtual void | onAI () override |
|
virtual void | onCleanup () override |
|
virtual bool | onEvent (const GEvent &e) override |
|
virtual void | onGraphics2D (RenderDevice *rd, Array< shared_ptr< Surface2D > > &surface2D) override |
| We retooled this method to both support video recording when the recording boolean is set to true and to support changes in time to the terrain by getting the next art piece from our Art variable and then loading that the png and reloading the scene. More...
|
|
virtual void | onGraphics3D (RenderDevice *rd, Array< shared_ptr< Surface > > &surface3D) override |
|
virtual void | onInit () override |
|
virtual void | onNetwork () override |
|
virtual void | onPose (Array< shared_ptr< Surface > > &posed3D, Array< shared_ptr< Surface2D > > &posed2D) override |
|
void | onRenderButton () |
|
void | onResolutionChange () |
|
virtual void | onSimulation (RealTime rdt, SimTime sdt, SimTime idt) override |
|
virtual void | onUserInput (UserInput *ui) override |
|
void | onVideoButton () |
| This method is called when the video button is pressed. More...
|
|
void | readHeightField (shared_ptr< Image > grayscale, String offFile, float vertScale, float horScale, float textScale) |
|
App::App |
( |
const GApp::Settings & |
settings = GApp::Settings() | ) |
|
Sets m_endProgram to true.
void App::loadScene |
( |
const String & |
sceneName | ) |
|
|
overridevirtual |
We changed this method so that it would not popup a loading scene method.
Unfortunately, the original method refers to and modifies private variables of GApp which we are no longer able to update as before. We did not notice any changes in vbehavior from omitting those private variable changes however.
bool App::onEvent |
( |
const GEvent & |
e | ) |
|
|
overridevirtual |
void App::onGraphics2D |
( |
RenderDevice * |
rd, |
|
|
Array< shared_ptr< Surface2D > > & |
surface2D |
|
) |
| |
|
overridevirtual |
We retooled this method to both support video recording when the recording boolean is set to true and to support changes in time to the terrain by getting the next art piece from our Art variable and then loading that the png and reloading the scene.
void App::onGraphics3D |
( |
RenderDevice * |
rd, |
|
|
Array< shared_ptr< Surface > > & |
surface3D |
|
) |
| |
|
overridevirtual |
void App::onPose |
( |
Array< shared_ptr< Surface > > & |
posed3D, |
|
|
Array< shared_ptr< Surface2D > > & |
posed2D |
|
) |
| |
|
overridevirtual |
void App::onRenderButton |
( |
| ) |
|
void App::onResolutionChange |
( |
| ) |
|
void App::onSimulation |
( |
RealTime |
rdt, |
|
|
SimTime |
sdt, |
|
|
SimTime |
idt |
|
) |
| |
|
overridevirtual |
void App::onUserInput |
( |
UserInput * |
ui | ) |
|
|
overridevirtual |
void App::onVideoButton |
( |
| ) |
|
This method is called when the video button is pressed.
It creates a raytracer to use, creates the art generator then sets the recording boolean to true. It also creates the video output which will be appending the images created from render.
void App::readHeightField |
( |
shared_ptr< Image > |
grayscale, |
|
|
String |
offFile, |
|
|
float |
vertScale, |
|
|
float |
horScale, |
|
|
float |
textScale |
|
) |
| |
shared_ptr<Art> App::artGenerator |
|
protected |
float App::artTimeIncrement |
|
protected |
float App::framesToCapture |
|
protected |
RealTime App::m_lastLightingChangeTime |
|
protected |
GuiDropDownList* App::m_resolutionList |
|
protected |
shared_ptr<G3D::VideoOutput> App::video |
|
protected |
The documentation for this class was generated from the following files: