Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
Blam::World Namespace Reference

Namespace containing functions for interacting with the current world state. More...

Functions

BLAM void InitializeWorldState ()
 Initializes a new world state. More...
 
BLAM void InitializeEmptyWorldState ()
 Initializes a new world state with no default objects. More...
 
BLAM void DestroyWorldState ()
 Destroys the current world state. More...
 
BLAM void DestroyWorldStateIfMarked ()
 Destroys the current world state if marked for destruction. More...
 
BLAM void MarkWorldStateForDestroy ()
 Marks the current world state to be destroyed before rendering the next frame. More...
 
BLAM BlamWorldStateGetWorldState ()
 Retrieves the current world state. More...
 

Detailed Description

Namespace containing functions for interacting with the current world state.

Function Documentation

◆ DestroyWorldState()

void Blam::World::DestroyWorldState ( )

Destroys the current world state.

+ Here is the caller graph for this function:

◆ DestroyWorldStateIfMarked()

void Blam::World::DestroyWorldStateIfMarked ( )

Destroys the current world state if marked for destruction.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetWorldState()

BlamWorldState * Blam::World::GetWorldState ( )

Retrieves the current world state.

Returns
Pointer to the current world state, or nullptr if the world state is not initialized.
+ Here is the caller graph for this function:

◆ InitializeEmptyWorldState()

void Blam::World::InitializeEmptyWorldState ( )

Initializes a new world state with no default objects.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitializeWorldState()

void Blam::World::InitializeWorldState ( )

Initializes a new world state.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MarkWorldStateForDestroy()

void Blam::World::MarkWorldStateForDestroy ( )

Marks the current world state to be destroyed before rendering the next frame.

To destroy the world state immediately, use DestroyWorldState, however this should only typically be done from the rendering thread.

+ Here is the caller graph for this function: