From 4b12fdcf72bcba1edd1b30a8c5aa66def470aec5 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 20:23:04 +0800 Subject: [PATCH] --- scene.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); -- 2.20.1