RuntimeEnvironment Class
Facade around the platform-environment entity used by runtime systems. More...
Declaration
Private Member Typedefs Index
| using | PlatformEntity = Entity< PlatformEntityManager > |
| using | Handle_type = typename PlatformEntity::Handle_type |
Public Constructors Index
| RuntimeEnvironment (const PlatformEntity &entity) | |
|
Constructs a runtime-environment facade from an existing platform entity. More... | |
Public Member Functions Index
| bool | isGPUReady () const noexcept |
|
Checks whether GPU context readiness was marked. More... | |
| bool | initialize () noexcept |
|
Marks the runtime environment as initialized. More... | |
| bool | isInitialized () const noexcept |
|
Checks whether initialization marker is present. More... | |
| bool | isAudioReady () const noexcept |
|
Checks whether audio backend is ready. More... | |
| void | setGPUReady () noexcept |
|
Marks GPU context readiness. More... | |
| bool | isRuntimeInfrastructureReady () const noexcept |
|
Checks whether all runtime-infrastructure prerequisites are ready. More... | |
Private Member Attributes Index
| PlatformEntity | entity_ |
|
The underlying Entity storing system components. More... | |
Description
Facade around the platform-environment entity used by runtime systems.
Definition at line 32 of file RuntimeEnvironment.ixx.
Private Member Typedefs
Handle_type
|
Definition at line 38 of file RuntimeEnvironment.ixx.
PlatformEntity
|
Definition at line 36 of file RuntimeEnvironment.ixx.
Public Constructors
RuntimeEnvironment()
| inline explicit |
Constructs a runtime-environment facade from an existing platform entity.
- Parameters
-
entity Platform environment entity.
Definition at line 53 of file RuntimeEnvironment.ixx.
Public Member Functions
initialize()
| inline noexcept |
Marks the runtime environment as initialized.
- Returns
true if initialization marker was added, otherwise false.
Definition at line 69 of file RuntimeEnvironment.ixx.
References isInitialized and helios::engine::runtime::registerComponents.
isAudioReady()
| inline noexcept |
Checks whether audio backend is ready.
- Returns
true when audio is considered ready.
Definition at line 92 of file RuntimeEnvironment.ixx.
Referenced by isRuntimeInfrastructureReady.
isGPUReady()
| inline noexcept |
Checks whether GPU context readiness was marked.
- Returns
true if GPU context is ready, otherwise false.
Definition at line 60 of file RuntimeEnvironment.ixx.
Referenced by isRuntimeInfrastructureReady and setGPUReady.
isInitialized()
| inline noexcept |
Checks whether initialization marker is present.
- Returns
true if initialized, otherwise false.
Definition at line 83 of file RuntimeEnvironment.ixx.
Referenced by initialize.
isRuntimeInfrastructureReady()
| inline noexcept |
Checks whether all runtime-infrastructure prerequisites are ready.
- Returns
true if runtime infrastructure is ready, otherwise false.
Definition at line 109 of file RuntimeEnvironment.ixx.
References isAudioReady and isGPUReady.
setGPUReady()
| inline noexcept |
Marks GPU context readiness.
Definition at line 99 of file RuntimeEnvironment.ixx.
References isGPUReady and helios::engine::runtime::registerComponents.
Private Member Attributes
entity_
|
The underlying Entity storing system components.
Definition at line 43 of file RuntimeEnvironment.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.