21 #include "../../SDL_internal.h"
23 #ifndef SDL_cocoaopengl_h_
24 #define SDL_cocoaopengl_h_
26 #if SDL_VIDEO_OPENGL_CGL
29 #import <Cocoa/Cocoa.h>
36 @interface SDLOpenGLContext : NSOpenGLContext {
41 - (
id)initWithFormat:(NSOpenGLPixelFormat *)format
42 shareContext:(NSOpenGLContext *)share;
43 - (
void)scheduleUpdate;
44 - (
void)updateIfNeeded;
51 extern int Cocoa_GL_LoadLibrary(
_THIS,
const char *
path);
52 extern void *Cocoa_GL_GetProcAddress(
_THIS,
const char *proc);
53 extern void Cocoa_GL_UnloadLibrary(
_THIS);
59 extern int Cocoa_GL_SetSwapInterval(
_THIS,
int interval);
60 extern int Cocoa_GL_GetSwapInterval(
_THIS);