src/video/ataricommon/SDL_atarigl_c.h
changeset 1005 2ab1cb02a44e
parent 1004 d1cd674b2ecd
child 1361 19418e4422cb
equal deleted inserted replaced
1004:d1cd674b2ecd 1005:2ab1cb02a44e
    38 	
    38 	
    39 	int gl_oldmesa;	/* Old OpenGL support ? */
    39 	int gl_oldmesa;	/* Old OpenGL support ? */
    40 
    40 
    41 	int	gl_pixelsize;	/* for CopyShadow functions */
    41 	int	gl_pixelsize;	/* for CopyShadow functions */
    42 
    42 
       
    43 	SDL_bool gl_upsidedown; /* Some implementations draw upside down */
       
    44 
    43 	Uint8 *gl_shadow;	/* Shadow buffer for old implementations */
    45 	Uint8 *gl_shadow;	/* Shadow buffer for old implementations */
    44 
    46 
    45 	/* for unsupported OSMesa buffer formats */
    47 	/* for unsupported OSMesa buffer formats */
    46 	void (*ConvertSurface)(_THIS, SDL_Surface *surface);	
    48 	void (*ConvertSurface)(_THIS, SDL_Surface *surface);	
    47 
    49 
    73 	GLint depth,stencil,accum;
    75 	GLint depth,stencil,accum;
    74 #endif
    76 #endif
    75 };
    77 };
    76 
    78 
    77 /* Variable names */
    79 /* Variable names */
    78 #define gl_active	(this->gl_data->gl_active)
    80 #define gl_active		(this->gl_data->gl_active)
    79 #define gl_ctx		(this->gl_data->ctx)
    81 #define gl_ctx			(this->gl_data->ctx)
    80 #define gl_oldmesa	(this->gl_data->gl_oldmesa)
    82 #define gl_oldmesa		(this->gl_data->gl_oldmesa)
    81 #define gl_pixelsize	(this->gl_data->gl_pixelsize)
    83 #define gl_pixelsize	(this->gl_data->gl_pixelsize)
    82 #define gl_shadow	(this->gl_data->gl_shadow)
    84 #define gl_upsidedown	(this->gl_data->gl_upsidedown)
    83 #define gl_convert	(this->gl_data->ConvertSurface)
    85 #define gl_shadow		(this->gl_data->gl_shadow)
       
    86 #define gl_convert		(this->gl_data->ConvertSurface)
    84 #define gl_copyshadow	(this->gl_data->CopyShadow)
    87 #define gl_copyshadow	(this->gl_data->CopyShadow)
    85 #define gl_curformat	(this->gl_data->format)
    88 #define gl_curformat	(this->gl_data->format)
    86 #define gl_curdepth		(this->gl_data->depth)
    89 #define gl_curdepth		(this->gl_data->depth)
    87 #define gl_curstencil	(this->gl_data->stencil)
    90 #define gl_curstencil	(this->gl_data->stencil)
    88 #define gl_curaccum		(this->gl_data->accum)
    91 #define gl_curaccum		(this->gl_data->accum)
    89 #define gl_curwidth	(this->gl_data->width)
    92 #define gl_curwidth		(this->gl_data->width)
    90 #define gl_curheight		(this->gl_data->height)
    93 #define gl_curheight	(this->gl_data->height)
    91 
    94 
    92 /* OpenGL functions */
    95 /* OpenGL functions */
    93 extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current);
    96 extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current);
    94 extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
    97 extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
    95 extern void SDL_AtariGL_InitPointers(_THIS);
    98 extern void SDL_AtariGL_InitPointers(_THIS);