git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc7b210
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 03:16:25 +0000
(11:16 +0800)
committer
Ash Tyndall
<
[email protected]
>
Sat, 22 Oct 2011 03:16:25 +0000
(11:16 +0800)
scene.c
patch
|
blob
|
history
diff --git
a/scene.c
b/scene.c
index
6f74153
..
8d875b0
100644
(file)
--- a/
scene.c
+++ b/
scene.c
@@
-329,8
+329,8
@@
void motion(int x, int y) {
case STATE_OBJECT_ROTATION_TEXTURE_SCALE:
\r
if ( buttonSelected == GLUT_LEFT_BUTTON ) {
\r
// w: rotate on width, h: rotate on h
\r
- sceneObjs[curObject].rotation.x += diff
x
* rotateFactor;
\r
-
\r
+ sceneObjs[curObject].rotation.x += diff
y
* rotateFactor;
\r
+ sceneObjs[curObject].rotation.y += diffx * rotateFactor;
\r
} else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {
\r
// w: rotate on height, h: texture scale
\r
\r
UCC
git Repository :: git.ucc.asn.au