X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=a74a6df231cb8a11b06be9b8b81854841baa84df;hp=4467e7d6c48296f4694bcf8a1fc11bf31c255653;hb=4b12fdcf72bcba1edd1b30a8c5aa66def470aec5;hpb=5133cc2f5c166c8f58b8989ebfc3f42341bdc668 diff --git a/scene.c b/scene.c index 4467e7d..a74a6df 100644 --- a/scene.c +++ b/scene.c @@ -484,8 +484,8 @@ void makeMenu() { * @param h New height */ void windowReshape(int w, int h) { - GLdouble near = -50.0; - GLdouble far = 50.0; + GLdouble near = -100.0; + GLdouble far = 100.0; glViewport(0, 0, (GLsizei) w, (GLsizei) h); glMatrixMode(GL_PROJECTION); @@ -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();