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>
33 #pragma clang diagnostic push
34 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
42 @interface SDLOpenGLContext : NSOpenGLContext {
47 - (
id)initWithFormat:(NSOpenGLPixelFormat *)format
48 shareContext:(NSOpenGLContext *)share;
49 - (
void)scheduleUpdate;
50 - (
void)updateIfNeeded;
56 extern int Cocoa_GL_LoadLibrary(
_THIS,
const char *
path);
57 extern void *Cocoa_GL_GetProcAddress(
_THIS,
const char *proc);
58 extern void Cocoa_GL_UnloadLibrary(
_THIS);
64 extern int Cocoa_GL_SetSwapInterval(
_THIS,
int interval);
65 extern int Cocoa_GL_GetSwapInterval(
_THIS);
70 #pragma clang diagnostic pop