git.ucc.asn.au
/
atyndall
/
cits2231.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[atyndall/cits2231.git]
/
scene.c
diff --git
a/scene.c
b/scene.c
index
debba60
..
4852c0b
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-319,7
+319,7
@@
void motion(int x, int y) {
sceneObjs[curObject].scale[2] *= scaling;
\r
\r
// h: up/down
\r
sceneObjs[curObject].scale[2] *= scaling;
\r
\r
// h: up/down
\r
- sceneObjs[curObject].y
+
= (y - starty) * updownFactor;
\r
+ sceneObjs[curObject].y
-
= (y - starty) * updownFactor;
\r
}
\r
\r
starty = y;
\r
}
\r
\r
starty = y;
\r
@@
-375,7
+375,7
@@
void display() {
0.0, 10.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
\r
0.0, 10.0, 0.0 /* up is in postivie Y direction */
\r
);
\r
\r
- glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0);
\r
+
//
glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0);
\r
\r
/* Reposition the light source 0. */
\r
lightPosition0[0] = 12*cos(lightAngle0);
\r
\r
/* Reposition the light source 0. */
\r
lightPosition0[0] = 12*cos(lightAngle0);
\r
UCC
git Repository :: git.ucc.asn.au