Scene::Node hosts a node in the local scene-graph.
Definition at line 268 of file Scene.hpp.
Constructs a Scene::Node
- Parameters
-
scene | The scene this node belongs to |
local | The local transoformation of this node |
Definition at line 769 of file Scene.cpp.
mat4 transformationByTime |
( |
uint const |
animation, |
|
|
float const |
time |
|
) |
| |
Returns the transformation for this node if it had a certain animation at a certain time-stamp.
- Parameters
-
animation | The animation-id |
time | The time-stamp |
- Returns
- The tranformation
Definition at line 792 of file Scene.cpp.
void updateInstance |
( |
SceneInstance & |
instance, |
|
|
float |
time, |
|
|
mat4 const & |
parentTransformation |
|
) |
| |
Updates the model-matrices/bone-matrices hosted by this node for a certain SceneInstance.
- Parameters
-
instance | The SceneInstance which should be updated |
time | The time-stamp |
parentTransformation | The parent-transformation which should be used. |
Definition at line 775 of file Scene.cpp.
All animation for this node by their animation-id
Definition at line 276 of file Scene.hpp.
vector<unique_ptr<Node> > m_children |
|
private |
All children of this node
Definition at line 271 of file Scene.hpp.
Wheter this node is a bone or not
Definition at line 275 of file Scene.hpp.
The local transformation of this node
Definition at line 273 of file Scene.hpp.
All meshes at this node
Definition at line 272 of file Scene.hpp.
The scene this node belongs to
Definition at line 270 of file Scene.hpp.
The documentation for this class was generated from the following files: