X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=common.h;h=1e1ebed3c21aaa8d7dfa65f33fbfeba4943217da;hb=dfee9022b3513fddec36f7ea70867ee5961a44da;hp=51eb1fa1df00dcc1931a6e2fcebd27aec2089af9;hpb=e36cb7e44611855d39ba84710a7007ca659e9cd5;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/common.h b/common.h index 51eb1fa..1e1ebed 100644 --- a/common.h +++ b/common.h @@ -13,4 +13,13 @@ enum classtype 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 */