|
VR-Engage
2.2
|
DtInitializationState is the first state executed when the VR-Engage application starts. It handles the initialization of critical components, system resources, and configuration settings before transitioning to the appropriate operational state, typically a connection or selection state.
This state should perform minimal user-visible operations, focusing primarily on behind-the-scenes setup work to prepare the application environment.
#include <initializationState.h>
Public Member Functions | |
| DtInitializationState (DtPlayerStationApp &app) | |
| virtual | ~DtInitializationState () override |
| virtual void | onEnter () override |
| virtual void | onExit () override |
| virtual void | tick (double dt) override |
Public Member Functions inherited from makVre::DtPlayerStationState | |
| DtPlayerStationState (DtPlayerStationApp &app, std::string stateType) | |
| virtual | ~DtPlayerStationState () |
| DtPlayerStationState (const DtPlayerStationState &)=delete | |
| DtPlayerStationState & | operator= (const DtPlayerStationState &)=delete |
| virtual void | onEnter (const DtPlayerStationStateArgs *args) |
| virtual void | onStacked () |
| virtual void | onExposed (const DtPlayerStationStateArgs *args) |
| virtual void | onExposed () |
| bool | active () const |
| bool | exposed () const |
| bool | exiting () const |
| bool | stacking () const |
| const std::string & | stateType () const |
| DtPlayerStationApp & | app () const |
Additional Inherited Members | |
Protected Member Functions inherited from makVre::DtPlayerStationState | |
| bool | pushState (const std::string &newState, DtPlayerStationStateArgs *args=NULL) |
| bool | popSelf () |
| bool | popUntilSelf () |
| bool | popUntilState (const std::string &parentState, DtPlayerStationStateArgs *args=NULL) |
| bool | switchToState (const std::string &newState, DtPlayerStationStateArgs *args=NULL) |
| bool | pushSelf () |
Protected Attributes inherited from makVre::DtPlayerStationState | |
| DtPlayerStationApp & | myApp |
| makVre::DtInitializationState::DtInitializationState | ( | DtPlayerStationApp & | app | ) |
Constructor.
| app | Reference to the player station application |
Creates a new initialization state associated with the given application. This is typically created by the application during startup.
References makVre::DtPlayerStationState::app().
|
overridevirtual |
Virtual destructor.
Ensures proper cleanup of initialization state resources.
|
overridevirtual |
Called when the state is entered.
Initializes application resources, subsystems, and configuration settings. This is the main initialization function that executes when the application starts, setting up everything needed for operation before transitioning to the next appropriate state.
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Called when the state is exited.
Performs cleanup of any temporary resources used during initialization. This is called when the application transitions from the initialization state to the next operational state.
Reimplemented from makVre::DtPlayerStationState.
|
overridevirtual |
Updates the state each frame.
| dt | Time in seconds since the last update |
Handles per-frame processing during initialization, which may include monitoring initialization progress, continuing asynchronous operations, and determining when to transition to the next state.
Reimplemented from makVre::DtPlayerStationState.