comparison 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
comparison
equal deleted inserted replaced
977:9c55b00f8251 978:3b1ba22f5a28
25 "@(#) $Id$"; 25 "@(#) $Id$";
26 #endif 26 #endif
27 27
28 #ifndef _SDL_xbios_h 28 #ifndef _SDL_xbios_h
29 #define _SDL_xbios_h 29 #define _SDL_xbios_h
30
31 #ifdef HAVE_OPENGL
32 #include <GL/osmesa.h>
33 #endif
30 34
31 #include "SDL_types.h" 35 #include "SDL_types.h"
32 #include "SDL_sysvideo.h" 36 #include "SDL_sysvideo.h"
33 37
34 /* Hidden "this" pointer for the video functions */ 38 /* Hidden "this" pointer for the video functions */
67 void *shadowscreen; /* Shadow screen for c2p conversion */ 71 void *shadowscreen; /* Shadow screen for c2p conversion */
68 int doubleline; /* Double line mode ? */ 72 int doubleline; /* Double line mode ? */
69 int frame_number; /* Number of frame for double buffer */ 73 int frame_number; /* Number of frame for double buffer */
70 int pitch; /* Destination line width for C2P */ 74 int pitch; /* Destination line width for C2P */
71 int width, height; /* Screen size for centered C2P */ 75 int width, height; /* Screen size for centered C2P */
76 #ifdef HAVE_OPENGL
77 OSMesaContext ctx; /* OpenGL OSMesa context */
78 #endif
72 79
73 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES+1]; 80 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES+1];
74 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES+1]; 81 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES+1];
75 }; 82 };
76 83
121 #define XBIOS_doubleline (this->hidden->doubleline) 128 #define XBIOS_doubleline (this->hidden->doubleline)
122 #define XBIOS_fbnum (this->hidden->frame_number) 129 #define XBIOS_fbnum (this->hidden->frame_number)
123 #define XBIOS_pitch (this->hidden->pitch) 130 #define XBIOS_pitch (this->hidden->pitch)
124 #define XBIOS_width (this->hidden->width) 131 #define XBIOS_width (this->hidden->width)
125 #define XBIOS_height (this->hidden->height) 132 #define XBIOS_height (this->hidden->height)
133 #ifdef HAVE_OPENGL
134 #define XBIOS_ctx (this->hidden->ctx)
135 #endif
126 136
127 #endif /* _SDL_xbios_h */ 137 #endif /* _SDL_xbios_h */