Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
A collection of keyframes. More...
#include <foray_animation.hpp>
Public Member Functions | |
glm::vec3 | SampleVec (float time) const |
Get an interpolated sample. | |
glm::quat | SampleQuat (float time) const |
Get an interpolated sample. | |
Static Public Member Functions | |
static glm::vec4 | InterpolateStep (float time, const AnimationKeyframe *lower, const AnimationKeyframe *upper) |
static glm::vec4 | InterpolateLinear (float time, const AnimationKeyframe *lower, const AnimationKeyframe *upper) |
static glm::quat | InterpolateLinearQuat (float time, const AnimationKeyframe *lower, const AnimationKeyframe *upper) |
static glm::vec4 | InterpolateCubicSpline (float time, const AnimationKeyframe *lower, const AnimationKeyframe *upper) |
static glm::quat | ReinterpreteAsQuat (glm::vec4) |
Public Attributes | |
EAnimationInterpolation | Interpolation = {} |
std::vector< AnimationKeyframe > | Keyframes = {} |
Protected Member Functions | |
void | SelectKeyframe (float time, const AnimationKeyframe *&lower, const AnimationKeyframe *&upper) const |
A collection of keyframes.
|
static |
|
static |
|
static |
|
static |
|
static |
glm::quat foray::scene::AnimationSampler::SampleQuat | ( | float | time | ) | const |
Get an interpolated sample.
time | Timepoint |
glm::vec3 foray::scene::AnimationSampler::SampleVec | ( | float | time | ) | const |
Get an interpolated sample.
time | Timepoint |
|
protected |
EAnimationInterpolation foray::scene::AnimationSampler::Interpolation = {} |
std::vector<AnimationKeyframe> foray::scene::AnimationSampler::Keyframes = {} |