comparison src/video/gem/SDL_gemvideo.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 44fd54a0ae5f
children 8b1c83edcde2
comparison
equal deleted inserted replaced
988:24b5c3ad4852 989:475166d13b44
25 "@(#) $Id$"; 25 "@(#) $Id$";
26 #endif 26 #endif
27 27
28 #ifndef _SDL_gemvideo_h 28 #ifndef _SDL_gemvideo_h
29 #define _SDL_gemvideo_h 29 #define _SDL_gemvideo_h
30
31 #ifdef HAVE_OPENGL
32 #include <GL/osmesa.h>
33 #endif
34 30
35 #include "SDL_sysvideo.h" 31 #include "SDL_sysvideo.h"
36 #include "SDL_mutex.h" 32 #include "SDL_mutex.h"
37 33
38 /* Hidden "this" pointer for the video functions */ 34 /* Hidden "this" pointer for the video functions */
87 short message[8]; /* To self-send an AES message */ 83 short message[8]; /* To self-send an AES message */
88 84
89 SDL_bool fullscreen; /* Fullscreen or windowed mode ? */ 85 SDL_bool fullscreen; /* Fullscreen or windowed mode ? */
90 SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; /* Mode list */ 86 SDL_Rect *SDL_modelist[SDL_NUMMODES+1]; /* Mode list */
91 SDL_Surface *icon; /* The icon */ 87 SDL_Surface *icon; /* The icon */
92
93 #ifdef HAVE_OPENGL
94 OSMesaContext ctx; /* OSMesa OpenGL context */
95 #endif
96 }; 88 };
97 89
98 /* Hidden structure -> variables names */ 90 /* Hidden structure -> variables names */
99 #define VDI_handle (this->hidden->vdi_handle) 91 #define VDI_handle (this->hidden->vdi_handle)
100 #define VDI_w (this->hidden->full_w) 92 #define VDI_w (this->hidden->full_w)
136 #define GEM_fullscreen (this->hidden->fullscreen) 128 #define GEM_fullscreen (this->hidden->fullscreen)
137 129
138 #define GEM_buffer1 (this->hidden->buffer1) 130 #define GEM_buffer1 (this->hidden->buffer1)
139 #define GEM_buffer2 (this->hidden->buffer2) 131 #define GEM_buffer2 (this->hidden->buffer2)
140 #define GEM_bufops (this->hidden->buf2scr_ops) 132 #define GEM_bufops (this->hidden->buf2scr_ops)
141
142 #define GEM_ctx (this->hidden->ctx)
143 133
144 #define VDI_FBMASK(amask, rmask, gmask, bmask) \ 134 #define VDI_FBMASK(amask, rmask, gmask, bmask) \
145 VDI_alphamask = (amask); \ 135 VDI_alphamask = (amask); \
146 VDI_redmask = (rmask); \ 136 VDI_redmask = (rmask); \
147 VDI_greenmask = (gmask); \ 137 VDI_greenmask = (gmask); \