1 #import "../posix/posix_public.h"
3 #import <Foundation/NSGeometry.h>
4 @class NSEvent, NSOpenGLContext, NSWindow;
6 #import <ApplicationServices/ApplicationServices.h>
7 #import <OpenGL/CGLTypes.h>
59 #define OSX_SetGLContext(context) \
61 NSOpenGLContext *_context = (context); \
62 glw_state._ctx = _context; \
63 glw_state._cgl_ctx = [_context cglContext]; \
66 #define OSX_GetNSGLContext() glw_state._ctx
67 #define OSX_GetCGLContext() glw_state._cgl_ctx
69 #define OSX_GLContextIsCurrent() glw_state._ctx_is_current
70 #define OSX_GLContextSetCurrent() \
72 [glw_state._ctx makeCurrentContext]; \
73 glw_state._ctx_is_current = (glw_state._ctx != nil); \
76 #define OSX_GLContextClearCurrent() \
78 [NSOpenGLContext clearCurrentContext]; \
79 glw_state._ctx_is_current = NO; \
const char * macosx_scanForLibraryDirectory(void)
CGDisplayCount displayCount
CGDirectDisplayID Sys_DisplayToUse(void)
void SetProgramPath(char *path)
void Sys_SetMouseInputRect(CGRect newRect)
CGDirectDisplayID display
void Sys_ShutdownInput(void)
CGDirectDisplayID display
unsigned int bufferSwapCount
NSDictionary * desktopMode
unsigned int glPauseCount
glwgamma_t * originalDisplayGammaTables
void Sys_AnnoyingBanner()