src/video/quartz/SDL_QuartzVideo.h
branchSDL-1.2
changeset 6157 8a1bc41db6bb
parent 6137 4720145f848b
child 7726 e9466ead70e5
equal deleted inserted replaced
6155:894b6e3637c7 6157:8a1bc41db6bb
    91     CGDirectDisplayID  display;            /* 0 == main display (only support single display) */
    91     CGDirectDisplayID  display;            /* 0 == main display (only support single display) */
    92     const void         *mode;              /* current mode of the display */
    92     const void         *mode;              /* current mode of the display */
    93     const void         *save_mode;         /* original mode of the display */
    93     const void         *save_mode;         /* original mode of the display */
    94     CGDirectPaletteRef palette;            /* palette of an 8-bit display */
    94     CGDirectPaletteRef palette;            /* palette of an 8-bit display */
    95     NSOpenGLContext    *gl_context;        /* OpenGL rendering context */
    95     NSOpenGLContext    *gl_context;        /* OpenGL rendering context */
       
    96     NSGraphicsContext  *nsgfx_context;     /* Cocoa graphics context */
    96     Uint32             width, height, bpp; /* frequently used data about the display */
    97     Uint32             width, height, bpp; /* frequently used data about the display */
    97     Uint32             flags;              /* flags for current mode, for teardown purposes */
    98     Uint32             flags;              /* flags for current mode, for teardown purposes */
    98     Uint32             video_set;          /* boolean; indicates if video was set correctly */
    99     Uint32             video_set;          /* boolean; indicates if video was set correctly */
    99     Uint32             warp_flag;          /* boolean; notify to event loop that a warp just occured */
   100     Uint32             warp_flag;          /* boolean; notify to event loop that a warp just occured */
   100     Uint32             warp_ticks;         /* timestamp when the warp occured */
   101     Uint32             warp_ticks;         /* timestamp when the warp occured */
   130 #define save_mode (this->hidden->save_mode)
   131 #define save_mode (this->hidden->save_mode)
   131 #define use_new_mode_apis (this->hidden->use_new_mode_apis)
   132 #define use_new_mode_apis (this->hidden->use_new_mode_apis)
   132 #define allow_screensaver (this->hidden->allow_screensaver)
   133 #define allow_screensaver (this->hidden->allow_screensaver)
   133 #define palette (this->hidden->palette)
   134 #define palette (this->hidden->palette)
   134 #define gl_context (this->hidden->gl_context)
   135 #define gl_context (this->hidden->gl_context)
       
   136 #define nsgfx_context (this->hidden->nsgfx_context)
   135 #define device_width (this->hidden->width)
   137 #define device_width (this->hidden->width)
   136 #define device_height (this->hidden->height)
   138 #define device_height (this->hidden->height)
   137 #define device_bpp (this->hidden->bpp)
   139 #define device_bpp (this->hidden->bpp)
   138 #define mode_flags (this->hidden->flags)
   140 #define mode_flags (this->hidden->flags)
   139 #define qz_window (this->hidden->window)
   141 #define qz_window (this->hidden->window)