Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Core::Scene Class Reference

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< ResourceHandleBasesceneResources
 
Contextcontext
 

Detailed Description

Definition at line 11 of file Scene.h.

Constructor & Destructor Documentation

◆ Scene()

Cogs::Core::Scene::Scene ( class Context context)
explicit

Definition at line 24 of file Scene.cpp.

Member Function Documentation

◆ addResource()

void Cogs::Core::Scene::addResource ( ResourceHandleBase resource)

Adds a resource to be handled with the lifetime of the scene.

Definition at line 99 of file Scene.cpp.

◆ clear()

void Cogs::Core::Scene::clear ( )

Clear the scene contents, emptying the entity store of top level entities.

This should in turn lead to the eventual destruction of all allocated entities.

Definition at line 86 of file Scene.cpp.

◆ setup()

void Cogs::Core::Scene::setup ( bool  readDefaultScene)

Member Data Documentation

◆ context

Context* Cogs::Core::Scene::context
private

Definition at line 36 of file Scene.h.

◆ sceneResources

std::vector<ResourceHandleBase> Cogs::Core::Scene::sceneResources
private

Definition at line 34 of file Scene.h.


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