X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-twistoid.c;h=56544ff934cbbd1c0eaddbd3cc5f5f526b5b3987;hb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;hp=1dce69dbf4945af9319908427126242e2e6a16c2;hpb=3f9592851ce4ed76a9979bfdd6ec7dc5c457e183;p=xscreensaver diff --git a/hacks/glx/extrusion-twistoid.c b/hacks/glx/extrusion-twistoid.c index 1dce69db..56544ff9 100644 --- a/hacks/glx/extrusion-twistoid.c +++ b/hacks/glx/extrusion-twistoid.c @@ -11,31 +11,19 @@ * -- port to glut Linas Vepstas March 1995 */ -/* required include files */ -#ifdef HAVE_CONFIG_H -#include -#endif +#include "extrusion.h" #include #include -#include -#include -#ifdef HAVE_GLE3 -#include -#else -#include -#endif /* Some files do not define M_PI... */ #ifndef M_PI #define M_PI 3.14159265358979323846 #endif +/* controls shape of object */ extern float lastx; extern float lasty; -extern float rot_x; -extern float rot_y; -extern float rot_z; #define OPENGL_10 /* =========================================================== */ @@ -184,14 +172,13 @@ void DrawStuff_twistoid (void) { #ifdef OPENGL_10 glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glFrontFace(GL_CW); /* jwz */ + /* 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); -/* glRotated (43.0, 1.0, 0.0, 0.0); */ -/* glRotated (43.0, 0.0, 1.0, 0.0); */ +/* glTranslatef (0.0, 0.0, -80.0); */ +/* glRotated (43.0, 1.0, 0.0, 0.0); */ +/* glRotated (43.0, 0.0, 1.0, 0.0); */ glScaled (1.8, 1.8, 1.8); gleTwistExtrusion (NUM_TWIS_PTS, twistation, twist_normal, NULL, NUM_TOID1_PTS, toid1_points, NULL, toid1_twists);