c22fd453d34a2dc778e7d78110a5eaa2ad908ae2
[carveJwlIkooP6JGAAIwe30JlM.git] / common.h
1 #ifndef COMMON_H
2 #define COMMON_H
3
4 #define VG_3D
5 #define VG_FRAMEBUFFER_RESIZE 1
6 #include "vg/vg.h"
7
8 /* TODO: he needs a home somewhere */
9 static float ktimestep = 1.0f/60.0f;
10
11 /* TODO: he needs a home somewhere */
12 enum classtype
13 {
14 k_classtype_none = 0,
15 k_classtype_gate = 1,
16 k_classtype_block = 2,
17 k_classtype_spawn = 3,
18 k_classtype_water = 4,
19 k_classtype_car_path = 5,
20 k_classtype_instance = 6
21 };
22
23 /* TODO: he needs a home somewhere */
24 typedef struct ray_hit ray_hit;
25 struct ray_hit
26 {
27 float dist;
28 u32 *tri;
29 v3f pos, normal;
30 };
31
32 #endif /* COMMON_H */