Base node to use in a SceneGraph or an Engine.
More...
#include <node.hpp>
Base node to use in a SceneGraph or an Engine.
Definition at line 42 of file node.hpp.
hx3d::ecs::Node::Node |
( |
const std::string |
name | ) |
|
bool hx3d::ecs::Node::childNameExists |
( |
const std::string |
name | ) |
|
|
protected |
Test if the object have a child.
- Parameters
-
- Returns
- True/False
Definition at line 92 of file node.cpp.
template<class T , class... Args>
Ptr< T > hx3d::ecs::Node::createChild |
( |
SceneGraph & |
sg, |
|
|
const std::string |
name, |
|
|
Args... |
args |
|
) |
| |
Destroy the node.
- Parameters
-
Definition at line 76 of file node.cpp.
Draw the node.
- Parameters
-
Definition at line 72 of file node.cpp.
template<class T >
Ptr< T > hx3d::ecs::Node::getChild |
( |
const std::string |
name | ) |
|
unsigned int hx3d::ecs::Node::getChildCount |
( |
| ) |
|
Get the recursive child count.
- Returns
- Child count
Definition at line 80 of file node.cpp.
Get the game object full transform.
- Returns
- Full transform;
Definition at line 30 of file node.cpp.
std::string hx3d::ecs::Node::getName |
( |
| ) |
|
Get the node name.
- Returns
- Name
Definition at line 68 of file node.cpp.
std::string hx3d::ecs::Node::getPath |
( |
| ) |
|
Get the game object full path from the root.
- Returns
- Path
Definition at line 48 of file node.cpp.
void hx3d::ecs::Node::removeChild |
( |
SceneGraph & |
sg, |
|
|
const std::string |
name |
|
) |
| |
void hx3d::ecs::Node::update |
( |
const float |
delta | ) |
|
|
virtual |
Update the node.
- Parameters
-
Definition at line 74 of file node.cpp.
The documentation for this class was generated from the following files: