From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver] / hacks / glx / sproingies.h
index 81c6cb7e35d15334816e4c9a7bb2525353d18d98..29a79baf9b888db5b87acdf9ffce4f23c0324e30 100644 (file)
  * See sproingiewrap.c
  */
 
-extern void DisplaySproingies(int screen,int pause);
-extern void NextSproingieDisplay(int screen,int pause);
+struct sPosColor {   /* Position and color of the sproingie     */
+       int x, y, z;     /*   Position                              */
+       int frame;       /*   Current frame (0-5)                   */
+       int life;        /*   Life points                           */
+       GLfloat r, g, b; /*   Color RGB                             */
+       int direction;   /*   Direction of next hop (left or right) */
+};
+
+typedef struct {
+       int         rotx, roty, dist, wireframe, flatshade, groundlevel,
+                   maxsproingies, mono;
+       int         sframe, target_rx, target_ry, target_dist, target_count;
+       const struct gllist *sproingies[6];
+       const struct gllist *SproingieBoom;
+       GLuint TopsSides;
+       struct sPosColor *positions;
+} sp_instance;
+
+extern void DisplaySproingies(sp_instance *si);
+extern void NextSproingieDisplay(sp_instance *si);
 extern void ReshapeSproingies(int w, int h);
-extern void CleanupSproingies(int screen);
-extern void InitSproingies(int wfmode, int grnd, int mspr, int smrtspr,
-                           int screen, int numscreens, int mono);
+extern void CleanupSproingies(sp_instance *si);
+extern void InitSproingies(sp_instance *, int wfmode, int grnd, int mspr,
+                           int smrtspr, int mono);