Untitled
Loading...
Searching...
No Matches
animation.h
Go to the documentation of this file.
1
6#ifndef ANIMATION_H
7#define ANIMATION_H
8
9#include "engine_types.h"
10
18void sample_animation(const AnimationSampler * sampler, float t, float *out_value);
19
26void play_animation(Animation * anim, float time, int entity_id);
27
32float animation_length(Animation * anim);
33
39Animation * find_animation(const char * name, int entity_id);
40
46
47
48
49#endif
void play_animation(Animation *anim, float time, int asset_instance)
Plays an animation at a certain time value.
Definition animation.c:68
Animation * find_animation(const char *name, int asset_instance)
Finds an animation via name.
Definition animation.c:91
void update_animation_components(float dt)
Updates animation components (not skeletal) once a frame.
Definition animation.c:115
void sample_animation(const AnimationSampler *sampler, float t, float *out_value)
Samples a value for an animation sampler at a certain time value.
Definition animation.c:23
float animation_length(Animation *anim)
Finds the length of an animation.
Definition animation.c:10
Engine specific types and defines.
The structure of an Skeletatal Animation loaded in from GLTFAnimation.
Engine-side sampler version of GLTFAnimationSampler with the field allocated.
float dt
The 1.0f/60 simulation timestep.
Definition main.c:319
float time
The frame time but wrapping at 1.0.
Definition main.c:320