diff src/video/xbios/SDL_xbios.h @ 978:3b1ba22f5a28

Add support for OpenGL on Atari using OSMesa, the offscreen rendering driver from Mesa
author Patrice Mandin <patmandin@gmail.com>
date Wed, 17 Nov 2004 23:13:15 +0000
parents b8d311d90021
children 475166d13b44
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.h	Mon Nov 15 23:34:56 2004 +0000
+++ b/src/video/xbios/SDL_xbios.h	Wed Nov 17 23:13:15 2004 +0000
@@ -28,6 +28,10 @@
 #ifndef _SDL_xbios_h
 #define _SDL_xbios_h
 
+#ifdef HAVE_OPENGL
+#include <GL/osmesa.h>
+#endif
+
 #include "SDL_types.h"
 #include "SDL_sysvideo.h"
 
@@ -69,6 +73,9 @@
 	int frame_number;		/* Number of frame for double buffer */
 	int pitch;				/* Destination line width for C2P */
 	int width, height;		/* Screen size for centered C2P */
+#ifdef HAVE_OPENGL
+	OSMesaContext ctx;		/* OpenGL OSMesa context */
+#endif
 
 	SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES+1];
 	xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES+1];
@@ -123,5 +130,8 @@
 #define XBIOS_pitch			(this->hidden->pitch)
 #define XBIOS_width			(this->hidden->width)
 #define XBIOS_height		(this->hidden->height)
+#ifdef HAVE_OPENGL
+#define XBIOS_ctx			(this->hidden->ctx)
+#endif
 
 #endif /* _SDL_xbios_h */