aboutsummaryrefslogtreecommitdiffstats
path: root/build/4coder_byp/custom/4coder_delta_rule.h
blob: 01f09e0e203083e58d87c70d7e8dd900b7f8d8e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
4coder_delta_rule.h - Types for built in delta rules and delta rule helpers.
*/

// TOP

#if !defined(FCODER_DELTA_RULE_H)
#define FCODER_DELTA_RULE_H

union Delta_Context_Header{
 Buffer_Point point;
 Vec2_f32 p;
 };
 struct Buffer_Point_Delta_Result{
 Buffer_Point point;
 b32 still_animating;
 };
 struct Vec2_f32_Delta_Result{
 Vec2_f32 p;
 b32 still_animating;
 };

 struct Smooth_Step{
 f32 p;
 f32 v;
};

#endif

// BOTTOM