ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver] / hacks / glx / bubble3d.h
index 4cbdd7540f417496c2365e5ece00ad1ea376e786..95af754bcef38dfebfe829067e2c6ebea6427e2b 100644 (file)
 #include <GL/glu.h>
 
 /* Static configuration. */
-#define GLB_SLOW_GL          1 /* Set this if you have a slow GL
+#define GLB_SLOW_GL          0 /* Set this if you have a slow GL
                                   * implementation. If you have an accelerated
                                   * graphics card, set this to 0.
                                 */
-#define GLB_USE_BLENDING     0 /* Use alpha feature to create see-through
-                                  * bubbles.
-                                */
 #define GLB_VERTICES_EPSILON 0.0005    /* How close are identical vertices? */
 
 /* Configuration structure. */
 struct glb_config {
+       int         transparent_p;      /* Whether to use alpha blending */
+
        int         subdivision_depth;  /* Controls how many triangles are in
                                         * each bubble. 2 and 3 are good values.
                                         */
@@ -60,6 +59,8 @@ struct glb_config {
        GLfloat     screen_top; /* Top of screen. */
        GLfloat     bg_colour[4];       /* Background colour. */
        GLfloat     bubble_colour[4];   /* Colour of the bubbles. */
+
+       int         polygon_count;
 };
 
 extern struct glb_config glb_config;