|
template<typename T > |
T | interpolate (vector< Frame< T >> const &frames, float const time) |
|
template<typename T > |
void | nearestFrames (vector< Frame< T >> const &frames, float const time, OUT Frame< T > const *&prev, OUT Frame< T > const *&next) |
|
Scene::NodeAnimation contains information about the animation of one node. It is basically a set of key-frames.
Definition at line 172 of file Scene.hpp.
T interpolate |
( |
vector< Frame< T >> const & |
frames, |
|
|
float const |
time |
|
) |
| |
|
inlineprivate |
Computes the value between keyframes
- Parameters
-
frames | The keyframes, which should be used |
time | The time-stamp at which to compute |
- Returns
- The computed value
Definition at line 209 of file Scene.hpp.
void nearestFrames |
( |
vector< Frame< T >> const & |
frames, |
|
|
float const |
time, |
|
|
OUT Frame< T > const *& |
prev, |
|
|
OUT Frame< T > const *& |
next |
|
) |
| |
|
inlineprivate |
Finds the previous and next key-frame to a certain time-stamp.
- Parameters
-
frames | The keyframes, which should be used |
time | The time-stamp |
prev | The resulting previous-keyframe |
next | The resulting next-keyframe |
Definition at line 235 of file Scene.hpp.
bool transformationByTime |
( |
float const |
time, |
|
|
OUT mat4 & |
result |
|
) |
| |
Computes the transformation at a certain time-stamp.
- Parameters
-
time | The time-stamp |
result | The resulting transformation |
- Returns
- Always true.
Definition at line 752 of file Scene.cpp.
vector<Frame<vec3> > m_positions |
|
private |
A set of key-frames for position-transformations, ordered by time-stamp
Definition at line 186 of file Scene.hpp.
vector<Frame<quat> > m_rotations |
|
private |
A set of key-frames for rotation-transformations, ordered by time-stamp
Definition at line 188 of file Scene.hpp.
vector<Frame<vec3> > m_scalings |
|
private |
A set of key-frames for scaling-transformations, ordered by time-stamp
Definition at line 187 of file Scene.hpp.
The documentation for this class was generated from the following files: