projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework scene format
[carveJwlIkooP6JGAAIwe30JlM.git]
/
common.h
diff --git
a/common.h
b/common.h
index 51eb1fa1df00dcc1931a6e2fcebd27aec2089af9..21251546e00336095bbc8b857d3e17d77e4093c4 100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-5,12
+5,26
@@
#define VG_FRAMEBUFFER_RESIZE 1
#include "vg/vg.h"
#define VG_FRAMEBUFFER_RESIZE 1
#include "vg/vg.h"
+/* TODO: he needs a home somewhere */
static float ktimestep = 1.0f/60.0f;
static float ktimestep = 1.0f/60.0f;
+/* TODO: he needs a home somewhere */
enum classtype
{
k_classtype_none = 0,
enum classtype
{
k_classtype_none = 0,
- k_classtype_gate = 1
+ k_classtype_gate = 1,
+ k_classtype_block = 2,
+ k_classtype_spawn = 3,
+ k_classtype_water = 4
+};
+
+/* 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 */
};
#endif /* COMMON_H */