#include "Models.h"
#include "Terrain.h"
#include "Sprite.h"
+#include "Texture.h"
#include <vector>
//
// Model Structures
float radius;
XYZ position[max_objects];
int type[max_objects];
- float rotation[max_objects];
- float rotation2[max_objects];
+ float yaw[max_objects];
+ float pitch[max_objects];
float rotx[max_objects];
float rotxvel[max_objects];
float roty[max_objects];
float scale[max_objects];
float messedwith[max_objects];
float checked[max_objects];
- GLuint boxtextureptr;
- GLuint treetextureptr;
- GLuint bushtextureptr;
- GLuint rocktextureptr;
+ Texture boxtextureptr;
+ Texture treetextureptr;
+ Texture bushtextureptr;
+ Texture rocktextureptr;
float shadowed[max_objects];
float occluded[max_objects];
bool checkcollide(XYZ startpoint, XYZ endpoint,int which);
void SphereCheckPossible(XYZ *p1,float radius);
void DeleteObject(int which);
- void MakeObject(int atype, XYZ where, float arotation, float ascale);
- void MakeObject(int atype, XYZ where, float arotation, float arotation2, float ascale);
+ void MakeObject(int atype, XYZ where, float ayaw, float ascale);
+ void MakeObject(int atype, XYZ where, float ayaw, float apitch, float ascale);
void Draw();
void DoShadows();
void DoStuff();