comparison src/video/macdsp/SDL_dspvideo.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children c0a74f199ecf
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
136 #include <QDOffscreen.h> 136 #include <QDOffscreen.h>
137 #include <DrawSprocket.h> 137 #include <DrawSprocket.h>
138 #endif 138 #endif
139 139
140 #include "SDL_video.h" 140 #include "SDL_video.h"
141 #include "SDL_blit.h"
142 #include "SDL_syswm.h" 141 #include "SDL_syswm.h"
143 #include "SDL_sysvideo.h" 142 #include "../SDL_sysvideo.h"
144 #include "SDL_pixels_c.h" 143 #include "../SDL_blit.h"
144 #include "../SDL_pixels_c.h"
145 #include "SDL_dspvideo.h" 145 #include "SDL_dspvideo.h"
146 #include "SDL_macgl_c.h" 146 #include "SDL_macgl_c.h"
147 #include "SDL_macwm_c.h" 147 #include "SDL_macwm_c.h"
148 #include "SDL_macmouse_c.h" 148 #include "SDL_macmouse_c.h"
149 #include "SDL_macevents_c.h" 149 #include "SDL_macevents_c.h"
175 static int DSp_CheckHWBlit(_THIS, SDL_Surface *src, SDL_Surface *dest); 175 static int DSp_CheckHWBlit(_THIS, SDL_Surface *src, SDL_Surface *dest);
176 static int DSp_HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, 176 static int DSp_HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect,
177 SDL_Surface *dst, SDL_Rect *dstrect); 177 SDL_Surface *dst, SDL_Rect *dstrect);
178 static int DSp_FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color); 178 static int DSp_FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color);
179 179
180 #ifdef HAVE_OPENGL 180 #if SDL_VIDEO_OPENGL
181 static void DSp_GL_SwapBuffers (_THIS); 181 static void DSp_GL_SwapBuffers (_THIS);
182 #endif 182 #endif
183 183
184 #if ! TARGET_API_MAC_CARBON 184 #if ! TARGET_API_MAC_CARBON
185 185
294 device->SetHWAlpha = NULL; 294 device->SetHWAlpha = NULL;
295 device->LockHWSurface = DSp_LockHWSurface; 295 device->LockHWSurface = DSp_LockHWSurface;
296 device->UnlockHWSurface = DSp_UnlockHWSurface; 296 device->UnlockHWSurface = DSp_UnlockHWSurface;
297 device->FlipHWSurface = DSp_FlipHWSurface; 297 device->FlipHWSurface = DSp_FlipHWSurface;
298 device->FreeHWSurface = DSp_FreeHWSurface; 298 device->FreeHWSurface = DSp_FreeHWSurface;
299 #ifdef HAVE_OPENGL 299 #if SDL_VIDEO_OPENGL
300 device->GL_MakeCurrent = Mac_GL_MakeCurrent; 300 device->GL_MakeCurrent = Mac_GL_MakeCurrent;
301 device->GL_SwapBuffers = DSp_GL_SwapBuffers; 301 device->GL_SwapBuffers = DSp_GL_SwapBuffers;
302 device->GL_LoadLibrary = Mac_GL_LoadLibrary; 302 device->GL_LoadLibrary = Mac_GL_LoadLibrary;
303 device->GL_GetProcAddress = Mac_GL_GetProcAddress; 303 device->GL_GetProcAddress = Mac_GL_GetProcAddress;
304 #endif 304 #endif
1388 1388
1389 /* Unload DrawSprocket */ 1389 /* Unload DrawSprocket */
1390 DSpShutdown (); 1390 DSpShutdown ();
1391 } 1391 }
1392 1392
1393 #ifdef HAVE_OPENGL 1393 #if SDL_VIDEO_OPENGL
1394 1394
1395 /* swap buffers with v-sync */ 1395 /* swap buffers with v-sync */
1396 static void DSp_GL_SwapBuffers (_THIS) { 1396 static void DSp_GL_SwapBuffers (_THIS) {
1397 1397
1398 #ifndef DSP_NO_SYNC_OPENGL 1398 #ifndef DSP_NO_SYNC_OPENGL