From: Ash Tyndall Date: Fri, 21 Oct 2011 12:02:33 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=9e42797448ba7fc0349cc275baec55230e595a26;ds=sidebyside --- diff --git a/scene.c b/scene.c index e2e8cd2..c62831e 100644 --- a/scene.c +++ b/scene.c @@ -284,7 +284,8 @@ void motion(int x, int y) { if ( buttonSelected == GLUT_LEFT_BUTTON ) { // w: rotate, h: zoom - zoom += (y - starty); + zoom += (y - starty); + printf("zoom is %f\n", zoom); } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: rotate, h: tilt camAngle += (y - starty);