about summary refs log tree commit diff
path: root/src/game/client/cl_render.h
blob: 44ae7ad4a926dab30d1627768861c7c5caa3447e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
struct animstate
{
	keyframe body;
	keyframe back_foot;
	keyframe front_foot;
	keyframe attach;
};

void anim_seq_eval(sequence *seq, float time, keyframe *frame);
void anim_eval(animation *anim, float time, animstate *state);
void anim_add_keyframe(keyframe *seq, keyframe *added, float amount);
void anim_add(animstate *state, animstate *added, float amount);
void anim_eval_add(animstate *state, animation *anim, float time, float amount);

struct tee_render_info
{
	int texture;
	vec4 color_body;
	vec4 color_feet;
	float size;
};

void render_tee(animstate *anim, tee_render_info *info, int emote, vec2 dir, vec2 pos);