diff options
author | Jon Taylor <taylorj@ggi-project.org> | 1999-08-22 08:56:50 +0000 |
---|---|---|
committer | Jon Taylor <taylorj@ggi-project.org> | 1999-08-22 08:56:50 +0000 |
commit | 72fc9a527d29b731969bc5c94c51467f32f5a2e9 (patch) | |
tree | d8d36ac41de8f046ff9c2c007bb110140b402f5e /progs | |
parent | 14c53fe1d5490b94138ca570890f734641e99dac (diff) |
*** empty log message ***
Diffstat (limited to 'progs')
-rw-r--r-- | progs/ggi/gears.c | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/progs/ggi/gears.c b/progs/ggi/gears.c index 61a8b9f331..ac2e9f2a6e 100644 --- a/progs/ggi/gears.c +++ b/progs/ggi/gears.c @@ -1,4 +1,4 @@ -/* $Id: gears.c,v 1.2 1999/08/21 08:53:27 jtaylor Exp $ */ +/* $Id: gears.c,v 1.3 1999/08/22 08:56:50 jtaylor Exp $ */ /* * 3-D gear wheels. This program is in the public domain. @@ -222,7 +222,7 @@ key(unsigned char k, int x, int y) view_rotz -= 5.0; break; case 27: /* Escape */ - exit(0); + exit(0); /* FIXME: Shutdown and free resources cleanly in ggiglut */ break; default: return; @@ -320,20 +320,21 @@ visible(int vis) int main(int argc, char *argv[]) { - glutInit(&argc, argv); - glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); - - glutInitWindowPosition(0, 0); - glutInitWindowSize(300, 300); - glutCreateWindow("Gears"); - init(); - - glutDisplayFunc(draw); - glutReshapeFunc(reshape); - glutKeyboardFunc(key); - glutSpecialFunc(special); - glutVisibilityFunc(visible); - - glutMainLoop(); - return 0; /* ANSI C requires main to return int. */ + glutInit(&argc, argv); + glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); + +// glutInitWindowPosition(0, 0); +// glutInitWindowSize(300, 300); + glutCreateWindow("Gears"); + init(); + + glutDisplayFunc(draw); + glutReshapeFunc(reshape); + glutKeyboardFunc(key); + glutSpecialFunc(special); + glutVisibilityFunc(visible); + + glutMainLoop(); + + return 0; } |