Cogs.Core
|
Public Member Functions | |
Scene (class Context *context) | |
void | setup (bool readDefaultScene) |
Setup default scene components. | |
void | clear () |
Clear the scene contents, emptying the entity store of top level entities. | |
void | addResource (ResourceHandleBase &resource) |
Adds a resource to be handled with the lifetime of the scene. | |
Private Attributes | |
std::vector< ResourceHandleBase > | sceneResources |
Context * | context |
|
explicit |
void Cogs::Core::Scene::addResource | ( | ResourceHandleBase & | resource | ) |
void Cogs::Core::Scene::clear | ( | ) |
void Cogs::Core::Scene::setup | ( | bool | readDefaultScene | ) |
Setup default scene components.
readDefaultScene | - Reads the default scene. Set to false if application had read a scene. |
Definition at line 29 of file Scene.cpp.
References Cogs::Core::ComponentSystemWithDataPools< ComponentType, DataTypes >::createComponent(), Cogs::Core::EntityStore::createEntity(), Cogs::Core::EntityStore::getEntity(), Cogs::Core::NoDefault, Cogs::ComponentModel::ComponentHandle::resolveComponent(), Cogs::Core::ViewContext::setCamera(), Cogs::Core::Context::store, and Cogs::Core::Context::variables.
|
private |