X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FModels.hpp;fp=Source%2FGraphic%2FModels.hpp;h=6b907f22a913c5feb059eb929a0a188cf47e4910;hb=801f5d9f42983fad5bdc6fab11af503a3878a33a;hp=e642f17d2da82c9dba2f2c5c39c2feb85f193945;hpb=5e90d27b76a55d78ad804c074ab552f3d32acc2e;p=lugaru.git diff --git a/Source/Graphic/Models.hpp b/Source/Graphic/Models.hpp index e642f17..6b907f2 100644 --- a/Source/Graphic/Models.hpp +++ b/Source/Graphic/Models.hpp @@ -68,14 +68,13 @@ public: int type, oldtype; - int* possible; int* owner; XYZ* vertex; XYZ* normals; std::vector Triangles; GLfloat* vArray; - /*int possible[max_model_vertex]; + /* int owner[max_textured_triangle]; XYZ vertex[max_model_vertex]; XYZ normals[max_model_vertex]; @@ -83,7 +82,6 @@ public: Texture textureptr; ModelTexture modelTexture; - int numpossible; bool color; XYZ boundingspherecenter; @@ -93,6 +91,8 @@ public: 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); @@ -122,9 +122,11 @@ public: 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 possible; }; #endif