From 65f3bb01be690ff7581456054ee6c3c33bd079d5 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 9 Aug 2015 18:16:35 +0200 Subject: [PATCH] Remove options from gears example --- examples/gears.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) 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