src/video/ataricommon/SDL_atarigl_c.h
changeset 2033 b657f0bc72c2
parent 1895 c121d94672cb
child 2859 99210400e8b9
equal deleted inserted replaced
2032:ddf89133aebc 2033:b657f0bc72c2
    30 #include <GL/osmesa.h>
    30 #include <GL/osmesa.h>
    31 #endif
    31 #endif
    32 
    32 
    33 #include "../SDL_sysvideo.h"
    33 #include "../SDL_sysvideo.h"
    34 
    34 
    35 /* Hidden "this" pointer for the video functions */
    35 struct SDL_GLDriverData
    36 #define _THIS   SDL_VideoDevice *this
       
    37 
       
    38 struct SDL_PrivateGLData
       
    39 {
    36 {
    40 
    37 
    41     int gl_active;              /* to stop switching drivers while we have a valid context */
    38     int gl_active;              /* to stop switching drivers while we have a valid context */
    42 
    39 
    43     int gl_oldmesa;             /* Old OpenGL support ? */
    40     int gl_oldmesa;             /* Old OpenGL support ? */
    85     GLint depth, stencil, accum;
    82     GLint depth, stencil, accum;
    86 #endif
    83 #endif
    87 };
    84 };
    88 
    85 
    89 /* Variable names */
    86 /* Variable names */
    90 #define gl_active		(this->gl_data->gl_active)
    87 #define gl_active		(_this->gl_data->gl_active)
    91 #define gl_ctx			(this->gl_data->ctx)
    88 #define gl_ctx			(_this->gl_data->ctx)
    92 #define gl_oldmesa		(this->gl_data->gl_oldmesa)
    89 #define gl_oldmesa		(_this->gl_data->gl_oldmesa)
    93 #define gl_pixelsize	(this->gl_data->gl_pixelsize)
    90 #define gl_pixelsize	(_this->gl_data->gl_pixelsize)
    94 #define gl_upsidedown	(this->gl_data->gl_upsidedown)
    91 #define gl_upsidedown	(_this->gl_data->gl_upsidedown)
    95 #define gl_shadow		(this->gl_data->gl_shadow)
    92 #define gl_shadow		(_this->gl_data->gl_shadow)
    96 #define gl_convert		(this->gl_data->ConvertSurface)
    93 #define gl_convert		(_this->gl_data->ConvertSurface)
    97 #define gl_copyshadow	(this->gl_data->CopyShadow)
    94 #define gl_copyshadow	(_this->gl_data->CopyShadow)
    98 #define gl_curformat	(this->gl_data->format)
    95 #define gl_curformat	(_this->gl_data->format)
    99 #define gl_curdepth		(this->gl_data->depth)
    96 #define gl_curdepth		(_this->gl_data->depth)
   100 #define gl_curstencil	(this->gl_data->stencil)
    97 #define gl_curstencil	(_this->gl_data->stencil)
   101 #define gl_curaccum		(this->gl_data->accum)
    98 #define gl_curaccum		(_this->gl_data->accum)
   102 #define gl_curwidth		(this->gl_data->width)
    99 #define gl_curwidth		(_this->gl_data->width)
   103 #define gl_curheight	(this->gl_data->height)
   100 #define gl_curheight	(_this->gl_data->height)
   104 
   101 
   105 /* OpenGL functions */
   102 /* OpenGL functions */
   106 extern int SDL_AtariGL_Init(_THIS, SDL_Surface * current);
   103 extern int SDL_AtariGL_Init(_THIS, SDL_Surface * current);
   107 extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
   104 extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
   108 extern void SDL_AtariGL_InitPointers(_THIS);
   105 extern void SDL_AtariGL_InitPointers(_THIS);