X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=69c5a820ed26fa4c983adfd966d7284f76c66f5c;hp=c41dafb3f2e18da812f066cf4b2e3867e51440fc;hb=HEAD;hpb=9d6524836b1f571761735f0a154b0b8bb8936cfc diff --git a/scene.c b/scene.c index c41dafb..69c5a82 100644 --- a/scene.c +++ b/scene.c @@ -279,6 +279,7 @@ void motion(int x, int y) { sceneObjs[curObject].rotation.x += diffx * rotateFactor; // h: texture scale + // **NOTE: Seems to be problem with scaling, delayed action float max = (float)height/texscaleFactor; float scaling = (-diffy + max) / max; sceneObjs[curObject].texture.scale *= scaling; @@ -355,10 +356,8 @@ void display() { glPushMatrix(); - /* Perform scene rotations based on user mouse/keyboard input. */ + /* Perform scene rotations based on user mouse input. */ glRotatef(rotate*camRotateFactor, 0.0, 1.0, 0.0); - glTranslatef(camx, camy, camz); - glRotatef(keyrot, 1.0, 0.0, 0.0); drawFloor();