comparison test/testdyngl.c @ 1436:b5d4f280c960

Use the right dynamic GL on MacOS Classic
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 03:51:08 +0000
parents d910939febfa
children 4d3bb026cd16
comparison
equal deleted inserted replaced
1435:c2fa3fe049ed 1436:b5d4f280c960
94 glfuncs f; 94 glfuncs f;
95 int i; 95 int i;
96 SDL_Event event; 96 SDL_Event event;
97 int done=0; 97 int done=0;
98 GLfloat pixels[NB_PIXELS*3]; 98 GLfloat pixels[NB_PIXELS*3];
99 #if defined(__IRIX__) 99 #if defined(__WIN32__)
100 const char *gl_library = "libGL.so"; 100 const char *gl_library = "OpenGL32.DLL";
101 #elif defined(__MACOS__)
102 const char *gl_library = "OpenGLLibrary";
101 #elif defined(__MACOSX__) 103 #elif defined(__MACOSX__)
102 const char *gl_library = "/usr/X11R6/lib/libGL.1.dylib"; 104 const char *gl_library = "/usr/X11R6/lib/libGL.1.dylib";
105 #elif defined(__IRIX__)
106 const char *gl_library = "libGL.so";
103 #elif defined(__QNXNTO__) 107 #elif defined(__QNXNTO__)
104 const char *gl_library = "libGL.so.3"; 108 const char *gl_library = "libGL.so.3";
105 #elif defined(__WIN32__)
106 const char *gl_library = "OpenGL32.DLL";
107 #else 109 #else
108 const char *gl_library = "libGL.so.1"; 110 const char *gl_library = "libGL.so.1";
109 #endif 111 #endif
110 112
111 if (argv[1]) { 113 if (argv[1]) {