|
| | Manager () |
| | Default Constructor.
|
| |
| | Manager (const Camera &camera) |
| | Constructor where Camera settings are filled from a reference one.
|
| |
| template<typename T = Node, typename... Args> |
| T & | addNode (Args &&... args) |
| | Generate a new root node in the the scene.
|
| |
| template<typename T = Node, typename... Args> |
| T & | addNamedNode (const std::string &name, Args &&... args) |
| | Generate a new root node in the the scene.
|
| |
| void | addChildNodeToParent (Node &child, Node *parent) |
| | Attach a child node to a parent one.
|
| |
| void | deleteNode (Node &node) |
| | Remove a node from the scene.
|
| |
|
const std::vector< std::shared_ptr< Node > > & | getAllNodes () const |
| | Get all nodes in the scene.
|
| |
|
const std::vector< Node * > & | getRootNodes () const |
| | Get root nodes of the scene.
|
| |
| template<typename T = Node> |
| T * | search (const std::string path, const std::string separator="/") const |
| | Search for a node using a name path.
|
| |
|
Camera & | getCamera () |
| | Get currently bound scene camera.
|
| |
|
void | setCamera (Camera &camera) |
| | Set scene camera.
|
| |
| void | setCamera (Node &node) |
| | Set scene camera using a node's camera component.
|
| |
| void | setCamera (Node &node, const std::string &component_name) |
| | Set scene camera using a node's named camera component.
|
| |
| template<typename ComponentType > |
| void | setCameraFromComponent (ComponentType &component) |
| | Set scene camera using a component providing a camera.
|
| |
|
Camera & | getDefaultCamera () |
| | Get a reference to the default camera.
|
| |
|
void | resetCameraToDefault () |
| | Reset scene camera to the default camera.
|
| |
| void | addNodeInGroup (Node &node, const NodeType type) |
| | Add a node in a group (For example nodes that need to be in specific pass)
|
| |
|
std::vector< Node * > | getNodesByType (const NodeType type) const |
| | Get nodes belonging to a type (For exemple nodes that need to be in specific pass)
|
| |
| void | removeNodeFromGroup (Node &node, const NodeType type) |
| | Remove node from specified group.
|
| |
| void | removeNodeFromAllGroups (Node &node) |
| | Remove node from all of its groups.
|
| |
| void | update (const std::chrono::nanoseconds delta, const int8_t flags=0) |
| | Update the scene.
|
| |
|
| HasComponents (Manager &entity) |
| |
|
ComponentList< Manager, SceneComponent > & | getComponents () noexcept |
| | Get components bound to the entity.
|
| |
|
const ComponentList< Manager, SceneComponent > & | getComponents () const noexcept |
| | Get components bound to the entity.
|
| |
|
std::shared_ptr< T > | addComponent (Args &&... args) |
| | Add a new a component.
|
| |
|
std::shared_ptr< T > | addNamedComponent (const std::string &name, Args &&... args) |
| | Add a new a component.
|
| |
|
void | removeComponent (const std::string &name) |
| | Remove a component.
|
| |
|
const T * | getComponentByType () const noexcept |
| | Fetch a component by its type.
|
| |
|
T * | getComponentByType () noexcept |
| | Fetch a component by its type.
|
| |
|
T * | getComponentByName (const std::string &name) noexcept |
| | Fetch a component when you know its name.
|
| |
|
const T * | getComponentByName (const std::string &name) const noexcept |
| | Fetch a component when you know its name.
|
| |