X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fbubble3d.h;h=95af754bcef38dfebfe829067e2c6ebea6427e2b;hb=3f438031d610c7e15fd33876a879b97e290e05fb;hp=4cbdd7540f417496c2365e5ece00ad1ea376e786;hpb=df7adbee81405e2849728a24b498ad2117784b1f;p=xscreensaver diff --git a/hacks/glx/bubble3d.h b/hacks/glx/bubble3d.h index 4cbdd754..95af754b 100644 --- a/hacks/glx/bubble3d.h +++ b/hacks/glx/bubble3d.h @@ -16,17 +16,16 @@ #include /* 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;