|
|
Scene & | operator= (const Scene &)=delete |
|
| Scene (const Scene &)=delete |
| DLL | Scene () |
| | Construct an empty scene.
|
| DLL | ~Scene () |
| | Destructor.
|
| DLL void | Load (uint32_t aId) |
| | Load a scene from a resource identified by id.
|
| DLL void | Load (const std::string &aFilename) |
| | Load a scene from a file.
|
| DLL void | Load (const void *aBuffer, size_t aBufferSize) |
| | Load a scene from a memory buffer.
|
| DLL void | SetName (const char *aName) |
| | Set the scene name.
|
| DLL const char *const | GetName () const |
| | Get the scene name.
|
| DLL Node * | Add (std::unique_ptr< Node > aNode) |
| | Add a top-level node to the scene.
|
| DLL Node * | Insert (size_t aIndex, std::unique_ptr< Node > aNode) |
| | Insert a top-level node at a specific index.
|
| DLL std::unique_ptr< Node > | Remove (Node *aNode) |
| | Remove a top-level node by pointer.
|
| DLL std::unique_ptr< Node > | RemoveByIndex (size_t aIndex) |
| | Remove a top-level node by index.
|
| DLL size_t | GetChildrenCount () const |
| | Get the number of top-level child nodes.
|
| DLL Node * | GetChild (size_t aIndex) const |
| | Get a top-level child node by index.
|
| DLL size_t | GetChildIndex (const Node *aNode) const |
| | Get the index of a top-level child node.
|
| DLL const Node & | operator[] (const std::size_t index) const |
| | Access a top-level child node by index (const).
|
| DLL Node & | operator[] (const std::size_t index) |
| | Access a top-level child node by index.
|
| DLL void | Update (const double delta) |
| | Update all nodes in the scene.
|
| DLL void | BroadcastMessage (uint32_t aMessageType, const void *aMessageData) |
| | Broadcast a message to all nodes in the scene.
|
| DLL void | LoopTraverseDFSPreOrder (const std::function< void(Node &) > &aAction) |
| | Iterative depth-first pre-order traversal of all nodes in the scene.
|
| DLL void | LoopTraverseDFSPreOrder (const std::function< void(Node &) > &aPreamble, const std::function< void(Node &) > &aPostamble) |
| | Iterative depth-first pre-order traversal with separate preamble and postamble actions.
|
| DLL void | LoopTraverseDFSPreOrder (const std::function< void(const Node &) > &aAction) const |
| | Iterative depth-first pre-order traversal (const version).
|
| DLL void | LoopTraverseDFSPostOrder (const std::function< void(Node &) > &aAction) |
| | Iterative depth-first post-order traversal of all nodes in the scene.
|
| DLL void | LoopTraverseDFSPostOrder (const std::function< void(const Node &) > &aAction) const |
| | Iterative depth-first post-order traversal (const version).
|
| DLL void | RecursiveTraverseDFSPreOrder (const std::function< void(Node &) > &aAction) |
| | Recursive depth-first pre-order traversal of all nodes in the scene.
|
| DLL void | RecursiveTraverseDFSPostOrder (const std::function< void(Node &) > &aAction) |
| | Recursive depth-first post-order traversal of all nodes in the scene.
|
| DLL Node * | Find (const std::function< bool(const Node &) > &aUnaryPredicate) const |
| | Find the first node matching a predicate via depth-first search.
|
| DLL std::string | Serialize (bool aAsBinary=true) const |
| | Serialize the scene to a string.
|
| DLL void | Deserialize (const std::string &aSerializedScene) |
| | Deserialize a scene from a string.
|
| DLL void | SetFieldOfView (float aFieldOfView) |
| | Set the vertical field of view.
|
| DLL void | SetNear (float aNear) |
| | Set the near clipping plane distance.
|
| DLL void | SetFar (float aFar) |
| | Set the far clipping plane distance.
|
| DLL float | GetFieldOfView () const |
| | Get the vertical field of view.
|
| DLL float | GetNear () const |
| | Get the near clipping plane distance.
|
| DLL float | GetFar () const |
| | Get the far clipping plane distance.
|
| DLL void | SetCamera (Node *aNode) |
| | Set rendering camera.
|
| DLL void | SetCamera (uint32_t aNodeId) |
| | Set rendering camera by node id.
|
| DLL void | SetCamera (const std::string &aNodeName) |
| | Set rendering camera by node name.
|
| DLL const Node * | GetCamera () const |
| | Get the current camera node.
|
| DLL void | SetViewMatrix (const Matrix4x4 &aMatrix) |
| | Set the view matrix directly.
|
| DLL const Matrix4x4 & | GetViewMatrix () const |
| | Get the current view matrix.
|
Scene class. Scene is the container for all elements in a game level, takes care of collision, rendering and updates to all elements therein.
Definition at line 39 of file Scene.hpp.