diff options
Diffstat (limited to 'src/glut_waffle/glut_waffle.c')
-rw-r--r-- | src/glut_waffle/glut_waffle.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/glut_waffle/glut_waffle.c b/src/glut_waffle/glut_waffle.c index 11b214960..3381a2ea7 100644 --- a/src/glut_waffle/glut_waffle.c +++ b/src/glut_waffle/glut_waffle.c @@ -28,14 +28,10 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/time.h> #include <unistd.h> -#include <EGL/egl.h> #include <waffle.h> -extern int piglit_automatic; - struct glut_waffle_window; struct glut_waffle_state { @@ -55,11 +51,6 @@ struct glut_waffle_state { int window_width; int window_height; - int verbose; - int init_time; - - GLUT_EGLidleCB idle_cb; - struct waffle_display *display; struct waffle_context *context; struct glut_window *window; @@ -72,7 +63,6 @@ static struct glut_waffle_state _glut_waffle_state = { .display_mode = GLUT_RGB, .window_width = 300, .window_height = 300, - .verbose = 0, .window_id_pool = 0, }; @@ -86,7 +76,6 @@ struct glut_window { GLUT_EGLreshapeCB reshape_cb; GLUT_EGLdisplayCB display_cb; GLUT_EGLkeyboardCB keyboard_cb; - GLUT_EGLspecialCB special_cb; }; static void @@ -105,20 +94,6 @@ glutFatal(char *format, ...) exit(1); } -/** Return current time (in milliseconds). */ -static int -glutNow(void) -{ - struct timeval tv; -#ifdef __VMS - (void) gettimeofday(&tv, NULL ); -#else - struct timezone tz; - (void) gettimeofday(&tv, &tz); -#endif - return tv.tv_sec * 1000 + tv.tv_usec / 1000; -} - void glutInitAPIMask(int mask) { @@ -183,8 +158,6 @@ glutInit(int *argcp, char **argv) _glut->display = waffle_display_connect(display_name); if (!_glut->display) glutFatal("waffle_display_connect() failed"); - - _glut->init_time = glutNow(); } void @@ -254,29 +227,6 @@ glutChooseConfig(void) return config; } -int -glutGet(int state) -{ - int val; - - switch (state) { - case GLUT_ELAPSED_TIME: - val = glutNow() - _glut->init_time; - break; - default: - val = -1; - break; - } - - return val; -} - -void -glutIdleFunc(GLUT_EGLidleCB func) -{ - _glut->idle_cb = func; -} - void glutPostRedisplay(void) { @@ -374,12 +324,6 @@ glutKeyboardFunc(GLUT_EGLkeyboardCB func) } void -glutSpecialFunc(GLUT_EGLspecialCB func) -{ - _glut->window->special_cb = func; -} - -void glutMainLoop(void) { bool ok = true; |