From: Ash Tyndall Date: Tue, 18 Oct 2011 12:23:04 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4b12fdcf72bcba1edd1b30a8c5aa66def470aec5;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 9d71579..a74a6df 100644 --- a/scene.c +++ b/scene.c @@ -509,7 +509,7 @@ void windowReshape(int w, int h) { */ /*void mouse(int btn, int state, int x, int y) { -}*//* +}*/ static void mouse(int button, int state, int x, int y) { @@ -552,7 +552,7 @@ motion(int x, int y) lightStartY = y; glutPostRedisplay(); } -}*/ +} void idle() { angle = (int)(angle + 10) % 360; @@ -723,9 +723,9 @@ int main(int argc, char **argv) { glutReshapeFunc(windowReshape); glutDisplayFunc(display); - //glutMouseFunc(mouse); - //glutMotionFunc(motion); - glutIdleFunc(idle); + glutMouseFunc(mouse); + glutMotionFunc(motion); + //glutIdleFunc(idle); makeMenu();