X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Ftangram_shapes.c;h=32b7014c51bee5485352daea84ebc01e938a04c0;hb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;hp=283c2ba40dda58b98a856d625d0c5ae9937bd314;hpb=0d6b320def9180cf907ceaed56b23a972a11b757;p=xscreensaver diff --git a/hacks/glx/tangram_shapes.c b/hacks/glx/tangram_shapes.c index 283c2ba4..32b7014c 100644 --- a/hacks/glx/tangram_shapes.c +++ b/hacks/glx/tangram_shapes.c @@ -9,7 +9,19 @@ * implied warranty. */ -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + +#ifndef HAVE_COCOA +# include +#endif + +#ifdef HAVE_JWZGLES +# include "jwzgles.h" +#endif /* HAVE_JWZGLES */ + +#include "tangram_shapes.h" #define small_scale ( 1 ) #define large_scale ( 2 ) @@ -75,6 +87,7 @@ static void tri_45_90(int wire) glEnd(); } +static void unit_cube(int wire) { glBegin((wire) ? GL_LINE_LOOP : GL_QUADS); @@ -119,6 +132,7 @@ void unit_cube(int wire) glEnd(); } +static void unit_rhomboid(int wire) { glBegin((wire) ? GL_LINE_LOOP : GL_QUADS);