X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=1e1ebed3c21aaa8d7dfa65f33fbfeba4943217da;hb=ecc4dfbfb3adf91d2dfc03ba0ec9a821fcc2390c;hp=cc272027b2ce284739915aa51720ebe0ec283bee;hpb=afa80c76d03f5e983092e9d7be33a9102a7ab25e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index cc27202..1e1ebed 100644 --- a/common.h +++ b/common.h @@ -7,4 +7,19 @@ static float ktimestep = 1.0f/60.0f; +enum classtype +{ + k_classtype_none = 0, + k_classtype_gate = 1 +}; + +/* 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 */