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

Public Types

typedef std::shared_ptr< SceneBaseptr

Public Member Functions

 SceneBase (Window *window)
void _call_load ()
void _call_unload ()
void _call_activate ()
void _call_deactivate ()
bool is_loaded () const
bool is_active () const
const std::string name () const
void set_name (const std::string &name)
bool destroy_on_unload () const
void set_destroy_on_unload (bool v)
bool unload_on_deactivate () const
void set_unload_on_deactivate (bool v)
 S_DEFINE_PROPERTY (window, &SceneBase::window_)
 S_DEFINE_PROPERTY (app, &SceneBase::app_)
 S_DEFINE_PROPERTY (input, &SceneBase::input_)
 S_DEFINE_PROPERTY (scenes, &SceneBase::scene_manager_)
 S_DEFINE_PROPERTY (compositor, &SceneBase::compositor_)
- Public Member Functions inherited from smlt::StageManager
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 _late_update_thunk (float dt)

Protected Member Functions

virtual void load ()=0
virtual void unload ()
virtual void activate ()
virtual void deactivate ()
void link_pipeline (const std::string &name)
void unlink_pipeline (const std::string &name)
void link_pipeline (PipelinePtr pipeline)
void unlink_pipeline (PipelinePtr pipeline)
void _update_thunk (float dt) override
void _fixed_update_thunk (float dt) override
std::size_t load_arg_count () const
template<typename T >
get_load_arg (int i)
- Protected Member Functions inherited from smlt::StageManager
void clean_destroyed_stages ()


class SceneManager

Additional Inherited Members

- Protected Types inherited from smlt::StageManager
typedef Polylist< StageNode, StageStagePool
typedef StageNodeManager< StagePool, StageID, StageStageList
- Protected Attributes inherited from smlt::StageManager
StagePoolpool_ = nullptr
StageListmanager_ = nullptr

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