![]() |
ProtoTracer
1.0
Real-time 3D rendering and animation engine
|
Represents a single keyframe in an animation. More...
#include <KeyFrame.h>
Public Member Functions | |
KeyFrame () | |
Default constructor. | |
KeyFrame (float time, float value) | |
Parameterized constructor. | |
void | Set (float time, float value) |
Sets the time and value of the keyframe. | |
Public Attributes | |
float | Time = 0.0f |
The time of the keyframe. | |
float | Value = 0.0f |
The value of the keyframe. | |
Represents a single keyframe in an animation.
The KeyFrame class stores the time and value for a specific point in an animation. It provides methods for initialization and updating keyframe data.
Definition at line 21 of file KeyFrame.h.
KeyFrame | ( | ) |
Default constructor.
Constructs a KeyFrame object with default time and value (0.0f).
Definition at line 3 of file KeyFrame.cpp.
Parameterized constructor.
Constructs a KeyFrame object with specified time and value.
time | The time of the keyframe. |
value | The value of the keyframe. |
Definition at line 5 of file KeyFrame.cpp.
Sets the time and value of the keyframe.
Updates the properties of the keyframe to the specified time and value.
time | The new time of the keyframe. |
value | The new value of the keyframe. |
Definition at line 10 of file KeyFrame.cpp.
float Time = 0.0f |
The time of the keyframe.
Definition at line 23 of file KeyFrame.h.
Referenced by KeyFrame(), and Set().
float Value = 0.0f |
The value of the keyframe.
Definition at line 24 of file KeyFrame.h.
Referenced by KeyFrame(), and Set().