int type, oldtype;
- int* possible;
int* owner;
XYZ* vertex;
XYZ* normals;
std::vector<TexturedTriangle> Triangles;
GLfloat* vArray;
- /*int possible[max_model_vertex];
+ /*
int owner[max_textured_triangle];
XYZ vertex[max_model_vertex];
XYZ normals[max_model_vertex];
Texture textureptr;
ModelTexture modelTexture;
- int numpossible;
bool color;
XYZ boundingspherecenter;
bool flat;
+ Model();
+ ~Model();
void DeleteDecal(int which);
void MakeDecal(decal_type atype, XYZ *where, float *size, float *opacity, float *rotation);
void MakeDecal(decal_type atype, XYZ where, float size, float opacity, float rotation);
void drawimmediate();
void Rotate(float xang, float yang, float zang);
void deleteDeadDecals();
- ~Model();
+
+private:
void deallocate();
- Model();
+ /* indices of triangles that might collide */
+ std::vector<unsigned int> possible;
};
#endif