doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
macosx_sys.h File Reference
#import <Foundation/NSGeometry.h>
#import <ApplicationServices/ApplicationServices.h>
#import <OpenGL/CGLTypes.h>
#import "../posix/posix_public.h"

Go to the source code of this file.

Classes

struct  glwgamma_t
 
struct  glwstate_t
 

Macros

#define OSX_SetGLContext(context)
 
#define OSX_GetNSGLContext()   glw_state._ctx
 
#define OSX_GetCGLContext()   glw_state._cgl_ctx
 
#define OSX_GLContextIsCurrent()   glw_state._ctx_is_current
 
#define OSX_GLContextSetCurrent()
 
#define OSX_GLContextClearCurrent()
 

Functions

const char * macosx_scanForLibraryDirectory (void)
 
void Sys_InitInput (void)
 
void Sys_ShutdownInput (void)
 
CGDirectDisplayID Sys_DisplayToUse (void)
 
void SetProgramPath (char *path)
 
void Sys_SetMouseInputRect (CGRect newRect)
 
void Sys_AnnoyingBanner ()
 
bool Sys_Hide ()
 
bool Sys_Unhide ()
 
void Sys_PauseGL ()
 
void Sys_ResumeGL ()
 

Variables

glwstate_t glw_state
 

Macro Definition Documentation

#define OSX_GetCGLContext ( )    glw_state._cgl_ctx

Definition at line 67 of file macosx_sys.h.

#define OSX_GetNSGLContext ( )    glw_state._ctx

Definition at line 66 of file macosx_sys.h.

#define OSX_GLContextClearCurrent ( )
Value:
do { \
[NSOpenGLContext clearCurrentContext]; \
} while (0)
bool _ctx_is_current
Definition: macosx_sys.h:48
glwstate_t glw_state
Definition: macosx_glimp.mm:56

Definition at line 76 of file macosx_sys.h.

#define OSX_GLContextIsCurrent ( )    glw_state._ctx_is_current

Definition at line 69 of file macosx_sys.h.

#define OSX_GLContextSetCurrent ( )
Value:
do { \
[glw_state._ctx makeCurrentContext]; \
} while (0)
NSOpenGLContext * _ctx
Definition: macosx_sys.h:46
bool _ctx_is_current
Definition: macosx_sys.h:48
glwstate_t glw_state
Definition: macosx_glimp.mm:56

Definition at line 70 of file macosx_sys.h.

#define OSX_SetGLContext (   context)
Value:
do { \
NSOpenGLContext *_context = (context); \
glw_state._ctx = _context; \
glw_state._cgl_ctx = [_context cglContext]; \
} while (0)
NSOpenGLContext * _ctx
Definition: macosx_sys.h:46
CGLContextObj _cgl_ctx
Definition: macosx_sys.h:47
#define context
Definition: getdate.c:236
glwstate_t glw_state
Definition: macosx_glimp.mm:56

Definition at line 59 of file macosx_sys.h.

Function Documentation

const char* macosx_scanForLibraryDirectory ( void  )

Definition at line 45 of file macosx_utils.mm.

void SetProgramPath ( char *  path)
void Sys_AnnoyingBanner ( )
CGDirectDisplayID Sys_DisplayToUse ( void  )

Definition at line 1816 of file macosx_glimp.mm.

bool Sys_Hide ( )

Definition at line 1338 of file macosx_glimp.mm.

void Sys_InitInput ( void  )

Definition at line 39 of file dedicated.cpp.

void Sys_PauseGL ( )

Definition at line 424 of file macosx_glimp.mm.

void Sys_ResumeGL ( )

Definition at line 436 of file macosx_glimp.mm.

void Sys_SetMouseInputRect ( CGRect  newRect)

Definition at line 488 of file macosx_event.mm.

void Sys_ShutdownInput ( void  )

Definition at line 41 of file dedicated.cpp.

bool Sys_Unhide ( )

Definition at line 1395 of file macosx_glimp.mm.

Variable Documentation

glwstate_t glw_state

Definition at line 56 of file macosx_glimp.mm.