src/video/ataricommon/SDL_atarigl_c.h
changeset 992 0324ce32b2d9
parent 991 12b13601a544
child 993 2662da16d668
     1.1 --- a/src/video/ataricommon/SDL_atarigl_c.h	Fri Nov 26 16:16:50 2004 +0000
     1.2 +++ b/src/video/ataricommon/SDL_atarigl_c.h	Fri Nov 26 22:11:30 2004 +0000
     1.3 @@ -61,6 +61,11 @@
     1.4  	/* mesa_gl.ldg, tiny_gl.ldg */
     1.5  	void *(*OSMesaCreateLDG)( long format, long type, long width, long height );
     1.6  	void (*OSMesaDestroyLDG)(void);
     1.7 +
     1.8 +	/* Info needed to compare existing context with new asked one */
     1.9 +	int width, height;
    1.10 +	GLenum format;
    1.11 +	GLint depth,stencil,accum;
    1.12  };
    1.13  
    1.14  /* Variable names */
    1.15 @@ -71,10 +76,16 @@
    1.16  #define gl_shadow	(this->gl_data->gl_shadow)
    1.17  #define gl_convert	(this->gl_data->ConvertSurface)
    1.18  #define gl_copyshadow	(this->gl_data->CopyShadow)
    1.19 +#define gl_curformat	(this->gl_data->format)
    1.20 +#define gl_curdepth		(this->gl_data->depth)
    1.21 +#define gl_curstencil	(this->gl_data->stencil)
    1.22 +#define gl_curaccum		(this->gl_data->accum)
    1.23 +#define gl_curwidth	(this->gl_data->width)
    1.24 +#define gl_curheight		(this->gl_data->height)
    1.25  
    1.26  /* OpenGL functions */
    1.27  extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current);
    1.28 -extern void SDL_AtariGL_Quit(_THIS);
    1.29 +extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
    1.30  extern void SDL_AtariGL_InitPointers(_THIS);
    1.31  
    1.32  extern int SDL_AtariGL_LoadLibrary(_THIS, const char *path);