Nebula
|
#include <graphicsfeatureunit.h>
Sets up the core rendering system and provides properties and managers for default usage, such as rendering models, animations, particles, etc.
Inherits Game::FeatureUnit.
Classes | |
struct | TerrainInstance |
Private Types | |
using | UIRenderFunc = std::function<void()> |
Private Member Functions | |
__DeclareClass(GraphicsFeatureUnit) __DeclareSingleton(GraphicsFeatureUnit) public | ~GraphicsFeatureUnit () |
destructor | |
void | OnAttach () override |
called from GameServer::AttachGameFeature() | |
void | OnActivate () override |
Called upon activation of feature unit. | |
void | OnDeactivate () override |
Called upon deactivation of feature unit. | |
void | OnBeginFrame () override |
called on begin of frame | |
void | OnBeforeViews () override |
Called before views. | |
void | OnFrame () override |
called in the middle of the feature trigger cycle | |
void | OnEndFrame () override |
called at the end of the feature trigger cycle | |
void | OnRenderDebug () override |
called when game debug visualization is on | |
void | SetWindowTitle (const Util::StringAtom &title) |
Set window title. | |
void | SetGraphicsDebugging (bool value) |
Set Graphics Debugging on/off. | |
Ptr< Graphics::View > | GetDefaultView () const |
retrieve the default view | |
Ptr< Graphics::Stage > | GetDefaultStage () const |
retrieve the default stage | |
ViewHandle | GetDefaultViewHandle () const |
retrieve the default view handle | |
void | SetFrameScript (IO::URI const &uri) |
set framescript. must be done before OnActivate! | |
void | SetupTerrainBiome (const Terrain::BiomeSettings &biomeParameters) |
Setup terrain biome, run before OnActivate. | |
void | AddRenderUICallback (UIRenderFunc func) |
add a custom UI render function | |
Additional Inherited Members | |
Public Member Functions inherited from Game::FeatureUnit | |
FeatureUnit () | |
constructor | |
virtual | ~FeatureUnit () |
destructor | |
virtual void | OnRemove () |
called from GameServer::RemoveGameFeature() | |
bool | IsActive () const |
return true if featureunit is currently active | |
virtual void | OnLoad (World *world) |
called from within GameServer::Load() | |
virtual void | OnStart (World *world) |
called from within GameServer::OnStart() after OnLoad | |
virtual void | OnSave (World *world) |
called from within GameServer::Save() | |
virtual void | OnBeforeLoad (World *world) |
called from within GameServer::NotifyBeforeLoad() | |
virtual void | OnBeforeCleanup (World *world) |
called from within GameServer::NotifyBeforeCleanup() | |
virtual void | OnStop (World *world) |
called from withing GameServer::Stop() | |
virtual void | OnDecay () |
called after entities has been destroyed and before releasing their memory | |
virtual ManagerHandle | AttachManager (ManagerAPI api) |
attach a manager to the feature unit | |
virtual void | RemoveManager (ManagerHandle handle) |
remove a manager from the feature unit | |
void | SetCmdLineArgs (const Util::CommandLineArgs &a) |
set command line args | |
const Util::CommandLineArgs & | GetCmdLineArgs () const |
get command line args | |
Public Member Functions inherited from Core::RefCounted | |
RefCounted () | |
constructor | |
int | GetRefCount () const |
get the current refcount | |
void | AddRef () |
increment refcount by one | |
void | Release () |
decrement refcount and destroy object if refcount is zero | |
bool | IsInstanceOf (const Rtti &rtti) const |
return true if this object is instance of given class | |
bool | IsInstanceOf (const Util::String &className) const |
return true if this object is instance of given class by string | |
bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
return true if this object is instance of given class by fourcc | |
bool | IsA (const Rtti &rtti) const |
return true if this object is instance of given class, or a derived class | |
bool | IsA (const Util::String &rttiName) const |
return true if this object is instance of given class, or a derived class, by string | |
bool | IsA (const Util::FourCC &rttiFourCC) const |
return true if this object is instance of given class, or a derived class, by fourcc | |
const Util::String & | GetClassName () const |
get the class name | |
Util::FourCC | GetClassFourCC () const |
get the class FourCC code | |
Static Public Member Functions inherited from Core::RefCounted | |
static void | DumpRefCountingLeaks () |
dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!) | |
Protected Member Functions inherited from Core::RefCounted | |
virtual | ~RefCounted () |
destructor (called when refcount reaches zero) | |
Protected Attributes inherited from Game::FeatureUnit | |
Util::ArrayAllocator< ManagerHandle, ManagerAPI > | managers |
Ids::IdGenerationPool | managerPool |
bool | active |
Util::CommandLineArgs | args |
cmdline args for configuration from cmdline | |
|
private |
|
private |
destructor
|
private |
add a custom UI render function
|
inlineprivate |
retrieve the default stage
|
inlineprivate |
retrieve the default view
|
inlineprivate |
retrieve the default view handle
|
overrideprivatevirtual |
Called upon activation of feature unit.
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
called from GameServer::AttachGameFeature()
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
Called before views.
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
called on begin of frame
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
Called upon deactivation of feature unit.
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
called at the end of the feature trigger cycle
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
called in the middle of the feature trigger cycle
Reimplemented from Game::FeatureUnit.
|
overrideprivatevirtual |
called when game debug visualization is on
Reimplemented from Game::FeatureUnit.
|
inlineprivate |
set framescript. must be done before OnActivate!
|
inlineprivate |
Set Graphics Debugging on/off.
|
private |
Setup terrain biome, run before OnActivate.
|
inlineprivate |
Set window title.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |