From: Ash Tyndall Date: Tue, 18 Oct 2011 12:15:17 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=fc3ea14064066eaac7d0253fd5d4a3c2aa87457d;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index c37c4a3..74136de 100644 --- a/scene.c +++ b/scene.c @@ -618,6 +618,8 @@ void display() { 0.0, 1.0, 0.0 /* up is in postivie Y direction */ ); + glRotatef(45.0, 1.0, 0.0, 0.0); + /* Reposition the light source. */ lightPosition[0] = 12*cos(lightAngle); lightPosition[1] = lightHeight; @@ -626,7 +628,7 @@ void display() { glPushMatrix(); /* Perform scene rotations based on user mouse input. */ - //glRotatef(angle2, 1.0, 0.0, 0.0); + glRotatef(angle, 0.0, 1.0, 0.0); glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);