X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fjwzgles.c;h=094192c76ba61cc2feaba1d6d751ea2460e4ab9d;hp=325e4654b4b597527d1c222ccf849c2bfbd4a8d9;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/glx/jwzgles.c b/hacks/glx/jwzgles.c index 325e4654..094192c7 100644 --- a/hacks/glx/jwzgles.c +++ b/hacks/glx/jwzgles.c @@ -118,7 +118,8 @@ - gluNewQuadric, gluCylinder, etc: rewrite your code to use tube.c, etc. - Putting verts in a display list without a wrapping glBegin. - (I didn't realize that even worked!) + I didn't realize that even worked! Lockward used to do that, + before I fixed it to not. - Not every function is implemented; just the ones that I needed for xscreensaver. However, the trivial ones are trivial to enable @@ -134,13 +135,11 @@ winduprobot Uses SPHERE_MAP. jigglypuff Uses SPHERE_MAP (in chrome mode), GL_LINE (in wireframe) jigsaw Uses GLUtesselator. - lockward Puts verts in lists without glBegin! pinion Uses glSelectBuffer and gluPickMatrix for mouse-clicks. pipes Uses glMap2f for the Utah Teapot. polyhedra Uses GLUtesselator (concave objects); also Utah Teapot. skytentacles Uses GL_LINE in -cel mode. timetunnel Uses GL_CONSTANT_ALPHA and all kinds of other stuff. - */ @@ -168,7 +167,9 @@ #elif defined(HAVE_COCOA) # include # include -#else /* X11 */ +#elif defined(HAVE_ANDROID) +# include +#else /* real X11 */ # ifndef GL_GLEXT_PROTOTYPES # define GL_GLEXT_PROTOTYPES /* for glBindBuffer */ # endif @@ -306,6 +307,7 @@ typedef struct { /* All display lists */ #define ISENABLED_NORM_ARRAY (1<<13) #define ISENABLED_TEX_ARRAY (1<<14) #define ISENABLED_COLOR_ARRAY (1<<15) +#define ISENABLED_ALPHA_TEST (1<<16) typedef struct { @@ -3369,6 +3371,7 @@ enable_disable (GLuint bit, int set) case GL_LIGHTING: flag = ISENABLED_LIGHTING; break; case GL_BLEND: flag = ISENABLED_BLEND; break; case GL_DEPTH_TEST: flag = ISENABLED_DEPTH_TEST; break; + case GL_ALPHA_TEST: flag = ISENABLED_ALPHA_TEST; break; case GL_CULL_FACE: flag = ISENABLED_CULL_FACE; break; case GL_NORMALIZE: flag = ISENABLED_NORMALIZE; break; case GL_FOG: flag = ISENABLED_FOG; break;