diff --git a/examples/gears.c b/examples/gears.c index 55d2f672..bf7dfd63 100644 --- a/examples/gears.c +++ b/examples/gears.c @@ -32,10 +32,6 @@ #include #include -/* If non-zero, the program exits after that many seconds - */ -static int autoexit = 0; - /** Draw a gear wheel. You'll probably want to call this function when @@ -264,13 +260,12 @@ void reshape( GLFWwindow* window, int width, int height ) /* program & OpenGL initialization */ -static void init(int argc, char *argv[]) +static void init(void) { static GLfloat pos[4] = {5.f, 5.f, 10.f, 0.f}; static GLfloat red[4] = {0.8f, 0.1f, 0.f, 1.f}; static GLfloat green[4] = {0.f, 0.8f, 0.2f, 1.f}; static GLfloat blue[4] = {0.2f, 0.2f, 1.f, 1.f}; - GLint i; glLightfv(GL_LIGHT0, GL_POSITION, pos); glEnable(GL_CULL_FACE); @@ -298,19 +293,6 @@ static void init(int argc, char *argv[]) glEndList(); glEnable(GL_NORMALIZE); - - for ( i=1; i