projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.20.tar.gz
[xscreensaver]
/
hacks
/
glx
/
extrusion-joinoffset.c
diff --git
a/hacks/glx/extrusion-joinoffset.c
b/hacks/glx/extrusion-joinoffset.c
index 5b0b332b9d1ea15030abe4c12bfa096d407b7c6d..5895c3c0690e9e5f23ec19d73a9c79405024cc95 100644
(file)
--- a/
hacks/glx/extrusion-joinoffset.c
+++ b/
hacks/glx/extrusion-joinoffset.c
@@
-101,6
+101,7
@@
void InitStuff_joinoffset (void)
static double up_vector[3] = {1.0, 0.0, 0.0};
static double up_vector[3] = {1.0, 0.0, 0.0};
+/* controls shape of object */
extern float lastx;
extern float lasty;
extern float lastx;
extern float lasty;
@@
-122,8
+123,10
@@
void DrawStuff_joinoffset (void)
/* set up some matrices so that the object spins with the mouse */
glPushMatrix ();
/* 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);
gleExtrusion (cidx, moved_contour, contour_points, up_vector,
idx, points, colors);
@@
-134,8
+137,10
@@
void DrawStuff_joinoffset (void)
/* draw a seond copy, this time with the raw style, to compare
* things against */
glPushMatrix ();
/* 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;
save_style = gleGetJoinStyle ();
style = save_style;