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);
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