Aether3D Game Engine
Public Types | Public Member Functions | List of all members
ae3d::Scene Class Reference

Contains game objects in a transform hierarchy. More...

#include <Scene.hpp>

Public Types

enum  DeserializeResult { Success, ParseError }
 Result of GetSerialized.
 

Public Member Functions

void Add (class GameObject *gameObject)
 Adds a game object into the scene if it does not exist there already.
 
void Remove (GameObject *gameObject)
 
void Render ()
 Renders the scene.
 
void SetSkybox (const class TextureCube *skyTexture)
 
std::string GetSerialized () const
 
DeserializeResult Deserialize (const FileSystem::FileContentsData &serialized, std::vector< GameObject > &outGameObjects) const
 

Detailed Description

Contains game objects in a transform hierarchy.

Member Function Documentation

DeserializeResult ae3d::Scene::Deserialize ( const FileSystem::FileContentsData serialized,
std::vector< GameObject > &  outGameObjects 
) const
Parameters
serializedSerialized scene contents.
outGameObjectsReturns game objects that were created from serialized scene contents.
Returns
Result. Parsing stops on first error and successfully loaded game objects are returned.
std::string ae3d::Scene::GetSerialized ( ) const
Returns
Scene's contents in a textual format that can be saved into file etc.
void ae3d::Scene::Remove ( GameObject gameObject)
Parameters
gameObjectGame object to remove. Does nothing if it is null or doesn't exist in the scene.
void ae3d::Scene::SetSkybox ( const class TextureCube skyTexture)
Parameters
skyTextureSkybox texture. If this is the first time a valid skybox texture is provided, skybox geometry will also be generated.

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