Simulant  21.12-349
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
smlt::StageManager Class Reference
Inheritance diagram for smlt::StageManager:
smlt::Updateable smlt::SceneBase smlt::Scene< Loading > smlt::Scene< Splash > smlt::Scene< TestScene > smlt::Scene< T > smlt::scenes::Loading smlt::scenes::Splash smlt::test::TestScene smlt::PhysicsScene< T >

Classes

struct  IteratorPair
 

Public Member Functions

StagePtr new_stage (AvailablePartitioner partitioner=PARTITIONER_FRUSTUM)
 
StagePtr stage (StageID s)
 StageManager::stage. More...
 
StagePtr destroy_stage (StageID s)
 
std::size_t stage_count () const
 
bool has_stage (StageID stage_id) const
 
void fixed_update (float dt) override
 
void update (float dt) override
 
void late_update (float dt) override
 
void destroy_all_stages ()
 
IteratorPair each_stage ()
 
void destroy_object (Stage *object)
 
void destroy_object_immediately (Stage *object)
 
- Public Member Functions inherited from smlt::Updateable
virtual void _update_thunk (float dt)
 
virtual void _late_update_thunk (float dt)
 
virtual void _fixed_update_thunk (float step)
 

Protected Types

typedef Polylist< StageNode, StageStagePool
 
typedef StageNodeManager< StagePool, StageID, StageStageList
 

Protected Member Functions

void clean_destroyed_stages ()
 

Protected Attributes

StagePoolpool_ = nullptr
 
StageListmanager_ = nullptr
 

Friends

class Application
 
struct IteratorPair
 

Member Function Documentation

◆ stage()

StagePtr smlt::StageManager::stage ( StageID  s)

StageManager::stage.

Returns
A shared_ptr to the stage

The documentation for this class was generated from the following files: