X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-helix2.c;h=7a7152ff08cd294be6df0049e57b537a0c45d8dd;hb=refs%2Fheads%2Fmaster2;hp=9220133ef253a766b16025c90a20cb06b31a6c9d;hpb=93f25dc6827112d98b8b855ea85c8f5eb8123086;p=xscreensaver diff --git a/hacks/glx/extrusion-helix2.c b/hacks/glx/extrusion-helix2.c index 9220133e..7a7152ff 100644 --- a/hacks/glx/extrusion-helix2.c +++ b/hacks/glx/extrusion-helix2.c @@ -13,25 +13,11 @@ * Written by Linas Vepstas, March 1995 */ -/* required include files */ -#ifdef HAVE_CONFIG_H -#include -#endif +#include "extrusion.h" -#include -#include -#ifdef HAVE_GLE3 -#include -#else -#include -#endif - -/* most recent mouse postion */ +/* controls shape of object */ extern float lastx; extern float lasty; -extern float rot_x; -extern float rot_y; -extern float rot_z; void InitStuff_helix2 (void) { @@ -45,12 +31,9 @@ void DrawStuff_helix2 (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 (220.0, 0.0, 1.0, 0.0); */ -/* glRotatef (65.0, 1.0, 0.0, 0.0); */ +/* glTranslatef (0.0, 0.0, -80.0); */ +/* glRotatef (220.0, 0.0, 1.0, 0.0); */ +/* glRotatef (65.0, 1.0, 0.0, 0.0); */ /* Phew. FINALLY, Draw the helix -- */ gleSetJoinStyle (TUBE_NORM_EDGE | TUBE_JN_ANGLE | TUBE_JN_CAP);