SceneService Class Reference

#include <sceneservice.h>

Public Types

using SceneSet = std::unordered_set< Scene * >

Public Member Functions

 SceneService (ServiceConfiguration *configuration)
virtual ~SceneService ()=default
const SceneSetgetScenes () const
- Public Member Functions inherited from Service
 Service (ServiceConfiguration *configuration)
virtual ~Service ()
CoregetCore ()
const std::string getTypeName () const

Protected Member Functions

virtual void registerObjectCreators (rtti::Factory &factory) override
virtual void update (double deltaTime) override
virtual void postUpdate (double deltaTime) override
- Protected Member Functions inherited from Service
virtual void getDependentServices (std::vector< rtti::TypeInfo > &dependencies)
virtual void created ()
virtual bool init (utility::ErrorState &error)
virtual void preUpdate (double deltaTime)
virtual void shutdown ()
virtual void resourcesLoaded ()
template<typename SERVICE_CONFIG >
SERVICE_CONFIG * getConfiguration ()
template<typename SERVICE_CONFIG >
const SERVICE_CONFIG * getConfiguration () const

Detailed Description

Manages all the currently loaded scenes and updates the transform hierarchy from the root of every scene. Transformation updates are performed after application update.

Inheritance diagram for SceneService:
Collaboration diagram for SceneService:

Member Typedef Documentation

◆ SceneSet

using SceneSet = std::unordered_set<Scene*>

Constructor & Destructor Documentation

◆ SceneService()

SceneService ( ServiceConfiguration configuration)

◆ ~SceneService()

virtual ~SceneService ( )

Member Function Documentation

◆ getScenes()

const SceneSet& getScenes ( ) const
All scenes that are loaded.

◆ postUpdate()

virtual void postUpdate ( double  deltaTime)

Recursively updates the transform hierarchy for all scenes

Reimplemented from Service.

◆ registerObjectCreators()

virtual void registerObjectCreators ( rtti::Factory factory)

Object creation registration

Reimplemented from Service.

◆ update()

virtual void update ( double  deltaTime)

Updates all scenes.

Reimplemented from Service.