comparison src/video/ataricommon/SDL_atarigl_c.h @ 992:0324ce32b2d9

Keep current OpenGL context when possible
author Patrice Mandin <patmandin@gmail.com>
date Fri, 26 Nov 2004 22:11:30 +0000
parents 12b13601a544
children 2662da16d668
comparison
equal deleted inserted replaced
991:12b13601a544 992:0324ce32b2d9
59 void (*glGetIntegerv)( GLenum pname, GLint *value ); 59 void (*glGetIntegerv)( GLenum pname, GLint *value );
60 60
61 /* mesa_gl.ldg, tiny_gl.ldg */ 61 /* mesa_gl.ldg, tiny_gl.ldg */
62 void *(*OSMesaCreateLDG)( long format, long type, long width, long height ); 62 void *(*OSMesaCreateLDG)( long format, long type, long width, long height );
63 void (*OSMesaDestroyLDG)(void); 63 void (*OSMesaDestroyLDG)(void);
64
65 /* Info needed to compare existing context with new asked one */
66 int width, height;
67 GLenum format;
68 GLint depth,stencil,accum;
64 }; 69 };
65 70
66 /* Variable names */ 71 /* Variable names */
67 #define gl_active (this->gl_data->gl_active) 72 #define gl_active (this->gl_data->gl_active)
68 #define gl_ctx (this->gl_data->ctx) 73 #define gl_ctx (this->gl_data->ctx)
69 #define gl_oldmesa (this->gl_data->gl_oldmesa) 74 #define gl_oldmesa (this->gl_data->gl_oldmesa)
70 #define gl_pixelsize (this->gl_data->gl_pixelsize) 75 #define gl_pixelsize (this->gl_data->gl_pixelsize)
71 #define gl_shadow (this->gl_data->gl_shadow) 76 #define gl_shadow (this->gl_data->gl_shadow)
72 #define gl_convert (this->gl_data->ConvertSurface) 77 #define gl_convert (this->gl_data->ConvertSurface)
73 #define gl_copyshadow (this->gl_data->CopyShadow) 78 #define gl_copyshadow (this->gl_data->CopyShadow)
79 #define gl_curformat (this->gl_data->format)
80 #define gl_curdepth (this->gl_data->depth)
81 #define gl_curstencil (this->gl_data->stencil)
82 #define gl_curaccum (this->gl_data->accum)
83 #define gl_curwidth (this->gl_data->width)
84 #define gl_curheight (this->gl_data->height)
74 85
75 /* OpenGL functions */ 86 /* OpenGL functions */
76 extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current); 87 extern int SDL_AtariGL_Init(_THIS, SDL_Surface *current);
77 extern void SDL_AtariGL_Quit(_THIS); 88 extern void SDL_AtariGL_Quit(_THIS, SDL_bool unload);
78 extern void SDL_AtariGL_InitPointers(_THIS); 89 extern void SDL_AtariGL_InitPointers(_THIS);
79 90
80 extern int SDL_AtariGL_LoadLibrary(_THIS, const char *path); 91 extern int SDL_AtariGL_LoadLibrary(_THIS, const char *path);
81 extern void *SDL_AtariGL_GetProcAddress(_THIS, const char *proc); 92 extern void *SDL_AtariGL_GetProcAddress(_THIS, const char *proc);
82 extern int SDL_AtariGL_GetAttribute(_THIS, SDL_GLattr attrib, int* value); 93 extern int SDL_AtariGL_GetAttribute(_THIS, SDL_GLattr attrib, int* value);