/* cylinder drawing demo */
/* this demo demonstrates the various join styles */
-/* required include files */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <GL/gl.h>
-#include <GL/glut.h>
-#ifdef HAVE_GLE3
-#include <GL/gle.h>
-#else
-#include <GL/tube.h>
-#endif
+#include "extrusion.h"
/* ------------------------------------------------------- */
static double up_vector[3] = {1.0, 0.0, 0.0};
+/* controls shape of object */
extern float lastx;
extern float lasty;
/* set up some matrices so that the object spins with the mouse */
glPushMatrix ();
- glTranslatef (0.0, 4.0, -80.0);
- glRotatef (0.5*lastx, 0.0, 1.0, 0.0);
+ glScalef (0.5, 0.5, 0.5);
+ glTranslatef (0, 4, 0);
+ /* glTranslatef (0.0, 4.0, -80.0); */
+ /* glRotatef (0.5*lastx, 0.0, 1.0, 0.0); */
gleExtrusion (cidx, moved_contour, contour_points, up_vector,
idx, points, colors);
/* draw a seond copy, this time with the raw style, to compare
* things against */
glPushMatrix ();
- glTranslatef (0.0, -4.0, -80.0);
- glRotatef (0.5*lastx, 0.0, 1.0, 0.0);
+ glScalef (0.5, 0.5, 0.5);
+ glTranslatef (0, -4, 0);
+ /* glTranslatef (0.0, -4.0, -80.0); */
+ /* glRotatef (0.5*lastx, 0.0, 1.0, 0.0); */
save_style = gleGetJoinStyle ();
style = save_style;