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;
53 - (
void)explicitUpdate;
58 extern int Cocoa_GL_LoadLibrary(
_THIS,
const char *
path);
59 extern void *Cocoa_GL_GetProcAddress(
_THIS,
const char *proc);
60 extern void Cocoa_GL_UnloadLibrary(
_THIS);
66 extern int Cocoa_GL_SetSwapInterval(
_THIS,
int interval);
67 extern int Cocoa_GL_GetSwapInterval(
_THIS);
72 #pragma clang diagnostic pop
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
GLsizei const GLchar *const * path
GLfloat GLfloat GLfloat GLfloat h
GLubyte GLubyte GLubyte GLubyte w
void * SDL_GLContext
An opaque handle to an OpenGL context.
EGLSurface EGLNativeWindowType * window
The type used to identify a window.
A type representing an atomic integer value. It is a struct so people don't accidentally use numeric ...
static screen_context_t context