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
A type representing an atomic integer value. It is a struct so people don't accidentally use numeric ...
GLfloat GLfloat GLfloat GLfloat h
void * SDL_GLContext
An opaque handle to an OpenGL context.
GLubyte GLubyte GLubyte GLubyte w
EGLSurface EGLNativeWindowType * window
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
The type used to identify a window.
GLsizei const GLchar *const * path