X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-screw.c;h=6724476d8c0817b62e84e8a33a68a26f1e3d9497;hb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;hp=3d84a5ce72794c9dbd1060b84678fde37ee86f47;hpb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183;p=xscreensaver diff --git a/hacks/glx/extrusion-screw.c b/hacks/glx/extrusion-screw.c index 3d84a5ce..6724476d 100644 --- a/hacks/glx/extrusion-screw.c +++ b/hacks/glx/extrusion-screw.c @@ -11,24 +11,9 @@ * */ -/* required include files */ -#ifdef HAVE_CONFIG_H -#include -#endif - -#include +#include "extrusion.h" #include -#include -#include -#ifdef HAVE_GLE3 -#include -#else -#include -#endif - -#ifndef NULL -#define NULL ((void *) 0x0) -#endif /* NULL */ +#include /* =========================================================== */ @@ -88,11 +73,9 @@ static void init_contour (void) /* =========================================================== */ +/* controls shape of object */ extern float lastx; extern float lasty; -extern float rot_x; -extern float rot_y; -extern float rot_z; void InitStuff_screw (void) { @@ -117,12 +100,9 @@ void DrawStuff_screw (void) { /* set up some matrices so that the object spins with the mouse */ glPushMatrix (); - glTranslatef (0.0, 0.0, -80.0); - glRotatef(rot_x, 1, 0, 0); - glRotatef(rot_y, 0, 1, 0); - glRotatef(rot_z, 0, 0, 1); -/* glRotatef (130.0, 0.0, 1.0, 0.0); */ -/* glRotatef (65.0, 1.0, 0.0, 0.0); */ + /* glTranslatef (0.0, 0.0, -80.0); */ + /* glRotatef (130.0, 0.0, 1.0, 0.0); */ + /* glRotatef (65.0, 1.0, 0.0, 0.0); */ /* draw the brand and the handle */ gleScrew (20, contour, norms,