Untitled
Toggle main menu visibility
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
18
void
sample_animation
(
const
AnimationSampler
* sampler,
float
t,
float
*out_value);
19
26
void
play_animation
(
Animation
* anim,
float
time
,
int
entity_id);
27
32
float
animation_length
(
Animation
* anim);
33
39
Animation
*
find_animation
(
const
char
* name,
int
entity_id);
40
45
void
update_animation_components
(
float
dt
);
46
47
48
49
#endif
play_animation
void play_animation(Animation *anim, float time, int asset_instance)
Plays an animation at a certain time value.
Definition
animation.c:68
find_animation
Animation * find_animation(const char *name, int asset_instance)
Finds an animation via name.
Definition
animation.c:91
update_animation_components
void update_animation_components(float dt)
Updates animation components (not skeletal) once a frame.
Definition
animation.c:115
sample_animation
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
animation_length
float animation_length(Animation *anim)
Finds the length of an animation.
Definition
animation.c:10
engine_types.h
Engine specific types and defines.
Animation
The structure of an Skeletatal Animation loaded in from GLTFAnimation.
Definition
engine_types.h:2719
AnimationSampler
Engine-side sampler version of GLTFAnimationSampler with the field allocated.
Definition
engine_types.h:2666
dt
float dt
The 1.0f/60 simulation timestep.
Definition
main.c:319
time
float time
The frame time but wrapping at 1.0.
Definition
main.c:320
src
core
animation.h
Generated by
1.18.0