summaryrefslogtreecommitdiff
path: root/src/sphere.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-07-01 00:55:22 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:09:04 +0200
commit2186d5f3f95cd74a070a490d899291648d58667a (patch)
tree55241a1afa3e1a22e0b6593a8dead0b703800f44 /src/sphere.h
parent218ca90543758a20ac326e444ca0643174ca7384 (diff)
Initial revision
Diffstat (limited to 'src/sphere.h')
-rw-r--r--src/sphere.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/sphere.h b/src/sphere.h
new file mode 100644
index 0000000..0d16717
--- /dev/null
+++ b/src/sphere.h
@@ -0,0 +1,40 @@
+#ifndef _included_sphere_h_ /* Is this your first time? */
+#define _included_sphere_h_ 1
+
+
+typedef struct
+{
+ int v[3];
+} TRI_FACE;
+
+#define SPHERE_ORDER 6
+#define SPHERE_RADIUS ONE_FIXED
+#define SPHERE_FACES (8*SPHERE_ORDER*SPHERE_ORDER)
+#define SPHERE_VERTICES (4*SPHERE_ORDER*SPHERE_ORDER+2)
+#define SPHERE_TEXTURE_WRAP 4
+extern VECTORCH SphereVertex[];
+extern VECTORCH SphereRotatedVertex[];
+extern VECTORCH SphereAtmosRotatedVertex[];
+extern int SphereAtmosU[];
+extern int SphereAtmosV[];
+extern TRI_FACE SphereFace[];
+extern int SphereVertexHeight[];
+
+typedef struct
+{
+ VECTORCH Position[SPHERE_VERTICES];
+ VECTORCH Velocity[SPHERE_VERTICES];
+ int RipplePhase[SPHERE_VERTICES];
+ int BeenStopped[SPHERE_VERTICES];
+
+ int ExplosionPhase;
+ int NumberVerticesMoving;
+ int LifeTime;
+ int UseCollisions;
+
+} VOLUMETRIC_EXPLOSION;
+
+extern void Generate_Sphere(void);
+
+
+#endif \ No newline at end of file