Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoaopengl.h @ 1952:420716272158
Implemented X11 OpenGL support.
Added support for the SDL_VIDEO_OPENGL environment variable.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Jul 2006 08:43:17 +0000 |
parents | 83946ee0ff1f |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
1951:7177581dc9fa | 1952:420716272158 |
---|---|
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 #ifndef _SDL_cocoaopengl_h | 24 #ifndef _SDL_cocoaopengl_h |
25 #define _SDL_cocoaopengl_h | 25 #define _SDL_cocoaopengl_h |
26 | 26 |
27 #if SDL_VIDEO_OPENGL | 27 #if SDL_VIDEO_OPENGL_CGL |
28 | 28 |
29 struct SDL_GLDriverData | 29 struct SDL_GLDriverData |
30 { | 30 { |
31 int initialized; | 31 int initialized; |
32 }; | 32 }; |
42 extern int Cocoa_GL_SetSwapInterval(_THIS, int interval); | 42 extern int Cocoa_GL_SetSwapInterval(_THIS, int interval); |
43 extern int Cocoa_GL_GetSwapInterval(_THIS); | 43 extern int Cocoa_GL_GetSwapInterval(_THIS); |
44 extern void Cocoa_GL_SwapWindow(_THIS, SDL_Window * window); | 44 extern void Cocoa_GL_SwapWindow(_THIS, SDL_Window * window); |
45 extern void Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context); | 45 extern void Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context); |
46 | 46 |
47 #endif /* SDL_VIDEO_OPENGL */ | 47 #endif /* SDL_VIDEO_OPENGL_CGL */ |
48 | 48 |
49 #endif /* _SDL_cocoaopengl_h */ | 49 #endif /* _SDL_cocoaopengl_h */ |
50 | 50 |
51 /* vi: set ts=4 sw=4 expandtab: */ | 51 /* vi: set ts=4 sw=4 expandtab: */ |