The Nebula Device 3: App::RenderApplication Class Reference

The Nebula Device 3

App::RenderApplication Class Reference

#include <renderapplication.h>

Inheritance diagram for App::RenderApplication:

App::Application App::ViewerApplication


Detailed Description

Base class for Nebula3 applications with 3d rendering capability.

(C) 2007 Radon Labs GmbH

Public Member Functions

 RenderApplication ()
 constructor
virtual ~RenderApplication ()
 destructor
virtual bool Open ()
 open the application
virtual void Close ()
 close the application
virtual void Run ()
 run the application
void SetCompanyName (const Util::String &n)
 set company name
const Util::StringGetCompanyName () const
 get company name
void SetAppName (const Util::String &n)
 set application name
const Util::StringGetAppName () const
 get application name
void SetCmdLineArgs (const Util::CmdLineArgs &a)
 set command line args
const Util::CmdLineArgsGetCmdLineArgs () const
 get command line args
virtual void Exit ()
 exit the application, call right before leaving main()
bool IsOpen () const
 return true if app is open
int GetReturnCode () const
 get the return code

Protected Member Functions

void SetQuitRequested (bool b)
 set quit requested flag
bool IsQuitRequested () const
 return true if quit requested
virtual void OnConfigureDisplayDevice ()
 called to configure display device
virtual void OnProcessInput ()
 process input (called before rendering)
virtual void OnUpdateFrame ()
 update world
virtual void OnRenderFrame ()
 render current frame
Timing::Time GetTime () const
 get current absolute time
Timing::Time GetFrameTime () const
 get current frame time
void SetReturnCode (int c)
 set return code