diff src/video/gem/SDL_gemvideo.h @ 984:44fd54a0ae5f

Add OSMesa OpenGL support to the Atari GEM video driver
author Patrice Mandin <patmandin@gmail.com>
date Sun, 21 Nov 2004 21:59:47 +0000
parents d9209754ebee
children 475166d13b44
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.h	Sun Nov 21 00:57:47 2004 +0000
+++ b/src/video/gem/SDL_gemvideo.h	Sun Nov 21 21:59:47 2004 +0000
@@ -28,6 +28,10 @@
 #ifndef _SDL_gemvideo_h
 #define _SDL_gemvideo_h
 
+#ifdef HAVE_OPENGL
+#include <GL/osmesa.h>
+#endif
+
 #include "SDL_sysvideo.h"
 #include "SDL_mutex.h"
 
@@ -85,6 +89,10 @@
 	SDL_bool fullscreen;		/* Fullscreen or windowed mode ? */
 	SDL_Rect *SDL_modelist[SDL_NUMMODES+1];	/* Mode list */
 	SDL_Surface *icon;			/* The icon */
+
+#ifdef HAVE_OPENGL
+	OSMesaContext	ctx;		/* OSMesa OpenGL context */
+#endif
 };
 
 /* Hidden structure -> variables names */
@@ -131,6 +139,8 @@
 #define GEM_buffer2			(this->hidden->buffer2)
 #define GEM_bufops			(this->hidden->buf2scr_ops)
 
+#define GEM_ctx				(this->hidden->ctx)
+
 #define VDI_FBMASK(amask, rmask, gmask, bmask) \
 	VDI_alphamask = (amask); \
 	VDI_redmask = (rmask); \