![]() |
Aether3D Game Engine
|
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 |
Contains game objects in a transform hierarchy.
| DeserializeResult ae3d::Scene::Deserialize | ( | const FileSystem::FileContentsData & | serialized, |
| std::vector< GameObject > & | outGameObjects | ||
| ) | const |
| serialized | Serialized scene contents. |
| outGameObjects | Returns game objects that were created from serialized scene contents. |
| std::string ae3d::Scene::GetSerialized | ( | ) | const |
| void ae3d::Scene::Remove | ( | GameObject * | gameObject | ) |
| gameObject | Game object to remove. Does nothing if it is null or doesn't exist in the scene. |
| void ae3d::Scene::SetSkybox | ( | const class TextureCube * | skyTexture | ) |
| skyTexture | Skybox texture. If this is the first time a valid skybox texture is provided, skybox geometry will also be generated. |
1.8.9.1