4 #include "Quaternions.h"
7 #include "Quaternions.h"
18 #define max_objects 300
23 #define treetrunktype 3
24 #define treeleavestype 4
29 #define platformtype 9
39 XYZ position[max_objects];
40 int type[max_objects];
41 float rotation[max_objects];
42 float rotation2[max_objects];
43 float rotx[max_objects];
44 float rotxvel[max_objects];
45 float roty[max_objects];
46 float rotyvel[max_objects];
48 bool possible[max_objects];
49 Model model[max_objects];
50 Model displaymodel[max_objects];
51 float friction[max_objects];
52 float scale[max_objects];
53 float messedwith[max_objects];
54 float checked[max_objects];
56 GLuint treetextureptr;
57 GLuint bushtextureptr;
58 GLuint rocktextureptr;
59 float shadowed[max_objects];
60 float occluded[max_objects];
61 bool checkcollide(XYZ startpoint, XYZ endpoint,int which);
62 bool onfire[max_objects];
63 float flamedelay[max_objects];
65 void SphereCheckPossible(XYZ *p1,float radius);
66 void DeleteObject(int which);
67 void MakeObject(int atype, XYZ where, float arotation, float ascale);
68 void MakeObject(int atype, XYZ where, float arotation, float arotation2, float ascale);