Nebula
|
#include <renderapplication.h>
Render application class with multithreaded rendering.
(C) 2008 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Inherits App::Application.
Inherited by App::ViewerApplication.
Public Member Functions | |
RenderApplication () | |
constructor | |
virtual | ~RenderApplication () |
destructor | |
void | SetLogFileEnabled (bool b) |
enable/disable log file creation | |
void | SetOverrideRootDirectory (const Util::String &rootDir) |
override root-directory | |
void | SetMountStandardArchivesEnabled (bool b) |
enable/disable standard archive mounting | |
void | SetMultithreadedRendering (bool b) |
set multithreaded rendering | |
void | SetWindowData (const Util::Blob &data) |
sets the parent window | |
virtual bool | Open () |
open the application | |
virtual void | Close () |
close the application | |
virtual void | Run () |
run the application | |
Public Member Functions inherited from App::Application | |
Application () | |
constructor | |
virtual | ~Application () |
destructor | |
void | SetCompanyName (const Util::String &n) |
set company name | |
const Util::String & | GetCompanyName () const |
get company name | |
void | SetAppTitle (const Util::String &n) |
set application name | |
const Util::String & | GetAppTitle () const |
get application name | |
void | SetAppID (const Util::String &n) |
set application id | |
const Util::String & | GetAppID () const |
get application id | |
void | SetAppVersion (const Util::String &n) |
set application version | |
const Util::String & | GetAppVersion () const |
get application version | |
void | SetCmdLineArgs (const Util::CommandLineArgs &a) |
set command line args | |
const Util::CommandLineArgs & | GetCmdLineArgs () 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 | |
Util::String | LookupProjectDirectory () |
lookup the toolkit project key in the registry (Win32 only!) | |
void | SetQuitRequested (bool b) |
set quit requested flag | |
bool | IsQuitRequested () const |
return true if quit requested | |
virtual void | OnConfigureDisplay () |
called to configure display | |
virtual void | OnSetupResourceMappers () |
called to setup resource mappers | |
virtual void | OnProcessInput () |
process input (called before rendering) | |
virtual void | OnUpdateFrame () |
update world | |
Timing::Time | GetTime () const |
get current absolute time | |
Timing::Time | GetFrameTime () const |
get current frame time | |
_declare_timer (MainThreadFrameTimeAll) | |
_declare_timer (MainThreadWaitForGraphicsFrame) | |
Protected Member Functions inherited from App::Application | |
void | SetReturnCode (int c) |
set return code | |
Protected Attributes | |
Ptr< Core::CoreServer > | coreServer |
Ptr< Jobs::JobSystem > | jobSystem |
Ptr< IO::GameContentServer > | gameContentServer |
Ptr< IO::IoServer > | ioServer |
Ptr< IO::IoInterface > | ioInterface |
Ptr< Graphics::GraphicsInterface > | graphicsInterface |
Ptr< Graphics::Display > | display |
Ptr< Input::InputServer > | inputServer |
Ptr< FrameSync::FrameSyncTimer > | frameSyncTimer |
Ptr< Resources::ResourceManager > | resManager |
Util::Blob | windowData |
Timing::Time | time |
Timing::Time | frameTime |
bool | useMultithreadedRendering |
bool | quitRequested |
bool | logFileEnabled |
bool | mountStandardArchivesEnabled |
Util::String | overrideRootDirectory |
Protected Attributes inherited from App::Application | |
Util::String | companyName |
Util::String | appName |
Util::String | appID |
Util::String | appVersion |
Util::CommandLineArgs | args |
bool | isOpen |
int | returnCode |
Private Member Functions | |
void | UpdateTime () |
update the current time values | |
App::RenderApplication::RenderApplication | ( | ) |
constructor
|
virtual |
destructor
|
protected |
|
protected |
|
virtual |
|
inlineprotected |
get current frame time
|
inlineprotected |
get current absolute time
|
inlineprotected |
return true if quit requested
|
protected |
lookup the toolkit project key in the registry (Win32 only!)
|
protectedvirtual |
called to configure display
|
protectedvirtual |
process input (called before rendering)
Reimplemented in App::ViewerApplication.
|
protectedvirtual |
called to setup resource mappers
Configure the resource mapper objects for the render thread.
NOTE: ResourceMapper objects are created and configured here (the main thread) and then HANDED OVER to the render thread. DO NOT access ResourceMappers after Display::Open() is called. It's best to create ResourceMappers and then immediately forget about them.
|
protectedvirtual |
update world
Reimplemented in App::ViewerApplication.
|
virtual |
|
virtual |
run the application
Reimplemented from App::Application.
|
inline |
enable/disable log file creation
|
inline |
enable/disable standard archive mounting
|
inline |
set multithreaded rendering
|
inline |
override root-directory
|
inlineprotected |
set quit requested flag
|
inline |
sets the parent window
|
private |
update the current time values
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |