X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-helix4.c;h=fbf16020534600af7ad916b6aed5addf7901f75f;hb=2762a7d7cf8d83e68b8f635941f6609119d630ae;hp=6c81607cc30d9eb5256f1838536998c8445e34d9;hpb=c596d1306f5f92f7eab76224d3b049980a14adcb;p=xscreensaver diff --git a/hacks/glx/extrusion-helix4.c b/hacks/glx/extrusion-helix4.c index 6c81607c..fbf16020 100644 --- a/hacks/glx/extrusion-helix4.c +++ b/hacks/glx/extrusion-helix4.c @@ -13,17 +13,11 @@ * Written by Linas Vepstas, March 1995 */ -/* required include files */ -#include -#include -#include +#include "extrusion.h" -/* 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_helix4 (void) { @@ -40,12 +34,9 @@ void DrawStuff_helix4 (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 -- */ affine [0][0] = 1.0/ (0.01*lastx);