The Nebula Device 3: App::ViewerApplication Class Reference

The Nebula Device 3

App::ViewerApplication Class Reference

#include <viewerapplication.h>

Inheritance diagram for App::ViewerApplication:

App::RenderApplication App::Application


Detailed Description

Nebula3's default viewer application.

(C) 2007 Radon Labs GmbH

Public Member Functions

 ViewerApplication ()
 constructor
virtual ~ViewerApplication ()
 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

virtual void OnProcessInput ()
 process input (called before rendering)
virtual void OnRenderFrame ()
 render current frame
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 OnUpdateFrame ()
 update world
Timing::Time GetTime () const
 get current absolute time
Timing::Time GetFrameTime () const
 get current frame time
void SetReturnCode (int c)
 set return code