X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=a74a6df231cb8a11b06be9b8b81854841baa84df;hp=13c796e8ae744933bbee701bacff652f45fb0eae;hb=4b12fdcf72bcba1edd1b30a8c5aa66def470aec5;hpb=bc23d957879836a7485c9246601ab62534e7e83c diff --git a/scene.c b/scene.c index 13c796e..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 = -500.0; - GLdouble far = 500.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; @@ -641,7 +641,7 @@ void display() { glPushMatrix(); //glTranslatef(0.0, 0.0, 0.0); - glutWireTeapot(30); // Draw teapot for test + glutWireTeapot(1); // Draw teapot for test glPopMatrix(); glPushMatrix(); @@ -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();