From 5a9dfd8e5f68b2f6062987a5b67bbd7934828bf1 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 09:15:08 +0800 Subject: [PATCH] --- globals.c | 2 +- scene.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/globals.c b/globals.c index 7a5c310..a08eee1 100644 --- a/globals.c +++ b/globals.c @@ -92,7 +92,7 @@ GLfloat emission[] = {0.0, 0.3, 0.3, 1.0}; /* Zoom and rotate tracking */ GLfloat zoom = 0.0, rotate = 0.0, camAngle = 40.0; GLfloat zoomFactor = 0.2, rotateFactor = 0.5, camAngleFactor = 0.5; -GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 1.2, updownFactor = 0.5; +GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 0.2, updownFactor = 0.5; /* Beginning width, height */ int width = 500, height = 500; diff --git a/scene.c b/scene.c index 6d47393..ad7e4bf 100644 --- a/scene.c +++ b/scene.c @@ -306,6 +306,7 @@ void motion(int x, int y) { } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small, h: up/down float scaling = (y - starty)*bigsmallFactor; + printf("Scaling by %f on all axii\n", scaling); sceneObjs[curObject].scale[0] += scaling; sceneObjs[curObject].scale[1] += scaling; sceneObjs[curObject].scale[2] += scaling; -- 2.20.1