comparison src/video/maccommon/SDL_macgl_c.h @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c9b51268668f
children d910939febfa
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 22
23 /* AGL implementation of SDL OpenGL support */ 23 /* AGL implementation of SDL OpenGL support */
24 24
25 #ifdef HAVE_OPENGL 25 #if SDL_VIDEO_OPENGL
26 #ifdef MACOSX 26 #ifdef MACOSX
27 #include <OpenGL/gl.h> /* OpenGL.framework */ 27 #include <OpenGL/gl.h> /* OpenGL.framework */
28 #include <AGL/agl.h> /* AGL.framework */ 28 #include <AGL/agl.h> /* AGL.framework */
29 #else 29 #else
30 #include <GL/gl.h> 30 #include <GL/gl.h>
31 #include <agl.h> 31 #include <agl.h>
32 #endif /* MACOSX */ 32 #endif /* MACOSX */
33 #endif /* HAVE_OPENGL */ 33 #endif /* SDL_VIDEO_OPENGL */
34 34
35 /* OpenGL functions */ 35 /* OpenGL functions */
36 extern int Mac_GL_Init(_THIS); 36 extern int Mac_GL_Init(_THIS);
37 extern void Mac_GL_Quit(_THIS); 37 extern void Mac_GL_Quit(_THIS);
38 #ifdef HAVE_OPENGL 38 #if SDL_VIDEO_OPENGL
39 extern int Mac_GL_MakeCurrent(_THIS); 39 extern int Mac_GL_MakeCurrent(_THIS);
40 extern int Mac_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value); 40 extern int Mac_GL_GetAttribute(_THIS, SDL_GLattr attrib, int* value);
41 extern void Mac_GL_SwapBuffers(_THIS); 41 extern void Mac_GL_SwapBuffers(_THIS);
42 extern int Mac_GL_LoadLibrary(_THIS, const char *location); 42 extern int Mac_GL_LoadLibrary(_THIS, const char *location);
43 extern void Mac_GL_UnloadLibrary(_THIS); 43 extern void Mac_GL_UnloadLibrary(_THIS);