diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 18:11:55 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 21:31:11 +0700 |
commit | 325dca9f212f9fd44cd10a8180529970c7a08c72 (patch) | |
tree | e1cfaec078dfa49f4d51d05eef8a5b0967843a41 /src/Models.h | |
parent | 10f5376de856ecead4e8bbf66f19157f36f7a382 (diff) | |
download | blackshades-1.2.0.tar.gz |
Remove trailing whitespaces and duplicated blank lines 1.2.0
Diffstat (limited to 'src/Models.h')
-rw-r--r-- | src/Models.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Models.h b/src/Models.h index e49b8f1..d0a2575 100644 --- a/src/Models.h +++ b/src/Models.h @@ -6,7 +6,7 @@ // Model Maximums // #include "Quaternions.h" -#ifdef OS9 +#ifdef OS9 #include <gl.h> #include <glu.h> #else @@ -19,11 +19,10 @@ #define max_textured_triangle 400 // maximum number of texture-filled triangles in a model #define max_model_vertex max_textured_triangle*3 // maximum number of vertexs - // // Model Structures // - + class TexturedTriangle{ public: short vertex[3]; @@ -33,19 +32,19 @@ class TexturedTriangle{ class Model{ public: short vertexNum,TriangleNum; - + XYZ vertex[max_model_vertex]; XYZ normals[max_textured_triangle]; TexturedTriangle Triangles[max_textured_triangle]; GLfloat vArray[max_textured_triangle*27]; - + XYZ boundingspherecenter; float boundingsphereradius; int LineCheck(XYZ p1,XYZ p2, XYZ *p); int LineCheck2(XYZ p1,XYZ p2, XYZ *p,XYZ move,float rotate); int LineCheck2(XYZ *p1,XYZ *p2, XYZ *p,XYZ *move,float *rotate); int LineCheck3(XYZ p1,XYZ p2, XYZ *p,XYZ move,float rotate,float *d); - + void UpdateVertexArray(); bool load(Str255 Name); void Scale(float xscale,float yscale,float zscale); @@ -58,9 +57,8 @@ class Model{ void draw(float r,float g,float b, float x, float y, float z); void Rotate(float xang,float yang,float zang); void MultColor(float howmuch); - + XYZ boundingboxmin,boundingboxmax; }; #endif - |