X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-joinoffset.c;h=12406b4f9029384b72bf664cd1d77d2ff7720e40;hb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183;hp=786d0c755c8e878a62fdada6b42f8f1eeef2af54;hpb=c596d1306f5f92f7eab76224d3b049980a14adcb;p=xscreensaver diff --git a/hacks/glx/extrusion-joinoffset.c b/hacks/glx/extrusion-joinoffset.c index 786d0c75..12406b4f 100644 --- a/hacks/glx/extrusion-joinoffset.c +++ b/hacks/glx/extrusion-joinoffset.c @@ -3,16 +3,24 @@ /* this demo demonstrates the various join styles */ /* required include files */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include +#ifdef HAVE_GLE3 +#include +#else #include +#endif /* ------------------------------------------------------- */ /* the arrays in which we will store the polyline */ #define NPTS 100 -double points [NPTS][3]; -float colors [NPTS][3]; +static double points [NPTS][3]; +static float colors [NPTS][3]; static int idx = 0; /* some utilities for filling that array */ @@ -32,8 +40,8 @@ static int idx = 0; /* the arrays in which we will store the contour */ #define NCONTOUR 100 -double contour_points [NCONTOUR][2]; -int cidx = 0; +static double contour_points [NCONTOUR][2]; +static int cidx = 0; /* some utilities for filling that array */ #define C_PNT(x,y) { \ @@ -91,7 +99,7 @@ void InitStuff_joinoffset (void) gleSetJoinStyle (TUBE_JN_ANGLE | TUBE_CONTOUR_CLOSED | TUBE_JN_CAP); } -double up_vector[3] = {1.0, 0.0, 0.0}; +static double up_vector[3] = {1.0, 0.0, 0.0}; extern float lastx; extern float lasty;