X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=2ee2d7cd55f70669b1cc310d12da17e31f68bbc1;hb=344f0153cf1907da87dd041db3ec517325b1c429;hp=cc272027b2ce284739915aa51720ebe0ec283bee;hpb=afa80c76d03f5e983092e9d7be33a9102a7ab25e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index cc27202..2ee2d7c 100644 --- a/common.h +++ b/common.h @@ -5,6 +5,27 @@ #define VG_FRAMEBUFFER_RESIZE 1 #include "vg/vg.h" +/* TODO: he needs a home somewhere */ static float ktimestep = 1.0f/60.0f; +/* TODO: he needs a home somewhere */ +enum classtype +{ + k_classtype_none = 0, + k_classtype_gate = 1, + k_classtype_block = 2, + k_classtype_spawn = 3, + k_classtype_water = 4, + k_classtype_car_path = 5 +}; + +/* TODO: he needs a home somewhere */ +typedef struct ray_hit ray_hit; +struct ray_hit +{ + float dist; + u32 *tri; + v3f pos, normal; +}; + #endif /* COMMON_H */