Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.h @ 989:475166d13b44
Factorize OSMesa OpenGL code for Atari drivers
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 25 Nov 2004 15:47:49 +0000 |
parents | 3b1ba22f5a28 |
children | 0e7218843cfb |
comparison
equal
deleted
inserted
replaced
988:24b5c3ad4852 | 989:475166d13b44 |
---|---|
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 | |
34 | 30 |
35 #include "SDL_types.h" | 31 #include "SDL_types.h" |
36 #include "SDL_sysvideo.h" | 32 #include "SDL_sysvideo.h" |
37 | 33 |
38 /* Hidden "this" pointer for the video functions */ | 34 /* Hidden "this" pointer for the video functions */ |
71 void *shadowscreen; /* Shadow screen for c2p conversion */ | 67 void *shadowscreen; /* Shadow screen for c2p conversion */ |
72 int doubleline; /* Double line mode ? */ | 68 int doubleline; /* Double line mode ? */ |
73 int frame_number; /* Number of frame for double buffer */ | 69 int frame_number; /* Number of frame for double buffer */ |
74 int pitch; /* Destination line width for C2P */ | 70 int pitch; /* Destination line width for C2P */ |
75 int width, height; /* Screen size for centered C2P */ | 71 int width, height; /* Screen size for centered C2P */ |
76 #ifdef HAVE_OPENGL | |
77 OSMesaContext ctx; /* OpenGL OSMesa context */ | |
78 #endif | |
79 | 72 |
80 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES+1]; | 73 SDL_Rect *SDL_modelist[NUM_MODELISTS][SDL_NUMMODES+1]; |
81 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES+1]; | 74 xbiosmode_t *videomodes[NUM_MODELISTS][SDL_NUMMODES+1]; |
82 }; | 75 }; |
83 | 76 |
128 #define XBIOS_doubleline (this->hidden->doubleline) | 121 #define XBIOS_doubleline (this->hidden->doubleline) |
129 #define XBIOS_fbnum (this->hidden->frame_number) | 122 #define XBIOS_fbnum (this->hidden->frame_number) |
130 #define XBIOS_pitch (this->hidden->pitch) | 123 #define XBIOS_pitch (this->hidden->pitch) |
131 #define XBIOS_width (this->hidden->width) | 124 #define XBIOS_width (this->hidden->width) |
132 #define XBIOS_height (this->hidden->height) | 125 #define XBIOS_height (this->hidden->height) |
133 #ifdef HAVE_OPENGL | |
134 #define XBIOS_ctx (this->hidden->ctx) | |
135 #endif | |
136 | 126 |
137 #endif /* _SDL_xbios_h */ | 127 #endif /* _SDL_xbios_h */ |