Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_cgxvideo.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 | d910939febfa |
comparison
equal
deleted
inserted
replaced
1360:70a9cfb4cf1b | 1361:19418e4422cb |
---|---|
28 #include "SDL_endian.h" | 28 #include "SDL_endian.h" |
29 #include "SDL_timer.h" | 29 #include "SDL_timer.h" |
30 #include "SDL_thread.h" | 30 #include "SDL_thread.h" |
31 #include "SDL_video.h" | 31 #include "SDL_video.h" |
32 #include "SDL_mouse.h" | 32 #include "SDL_mouse.h" |
33 #include "SDL_sysvideo.h" | 33 #include "../SDL_sysvideo.h" |
34 #include "SDL_pixels_c.h" | 34 #include "../SDL_pixels_c.h" |
35 #include "SDL_events_c.h" | 35 #include "../../events/SDL_events_c.h" |
36 #include "SDL_cgxgl_c.h" | 36 #include "SDL_cgxgl_c.h" |
37 #include "SDL_cgxvideo.h" | 37 #include "SDL_cgxvideo.h" |
38 #include "SDL_cgxwm_c.h" | 38 #include "SDL_cgxwm_c.h" |
39 #include "SDL_amigamouse_c.h" | 39 #include "SDL_amigamouse_c.h" |
40 #include "SDL_amigaevents_c.h" | 40 #include "SDL_amigaevents_c.h" |
41 #include "SDL_cgxmodes_c.h" | 41 #include "SDL_cgxmodes_c.h" |
42 #include "SDL_cgximage_c.h" | 42 #include "SDL_cgximage_c.h" |
43 #include "SDL_cgxyuv_c.h" | |
44 | 43 |
45 /* Initialization/Query functions */ | 44 /* Initialization/Query functions */ |
46 static int CGX_VideoInit(_THIS, SDL_PixelFormat *vformat); | 45 static int CGX_VideoInit(_THIS, SDL_PixelFormat *vformat); |
47 static SDL_Surface *CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); | 46 static SDL_Surface *CGX_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); |
48 static int CGX_ToggleFullScreen(_THIS, int on); | 47 static int CGX_ToggleFullScreen(_THIS, int on); |
206 device->VideoInit = CGX_VideoInit; | 205 device->VideoInit = CGX_VideoInit; |
207 device->ListModes = CGX_ListModes; | 206 device->ListModes = CGX_ListModes; |
208 device->SetVideoMode = CGX_SetVideoMode; | 207 device->SetVideoMode = CGX_SetVideoMode; |
209 device->ToggleFullScreen = CGX_ToggleFullScreen; | 208 device->ToggleFullScreen = CGX_ToggleFullScreen; |
210 device->UpdateMouse = CGX_UpdateMouse; | 209 device->UpdateMouse = CGX_UpdateMouse; |
211 #ifdef XFREE86_XV | |
212 device->CreateYUVOverlay = X11_CreateYUVOverlay; | |
213 #endif | |
214 device->SetColors = CGX_SetColors; | 210 device->SetColors = CGX_SetColors; |
215 device->UpdateRects = NULL; | 211 device->UpdateRects = NULL; |
216 device->VideoQuit = CGX_VideoQuit; | 212 device->VideoQuit = CGX_VideoQuit; |
217 device->AllocHWSurface = CGX_AllocHWSurface; | 213 device->AllocHWSurface = CGX_AllocHWSurface; |
218 device->CheckHWBlit = CGX_CheckHWBlit; | 214 device->CheckHWBlit = CGX_CheckHWBlit; |
225 device->FreeHWSurface = CGX_FreeHWSurface; | 221 device->FreeHWSurface = CGX_FreeHWSurface; |
226 device->SetGamma = CGX_SetGamma; | 222 device->SetGamma = CGX_SetGamma; |
227 device->GetGamma = CGX_GetGamma; | 223 device->GetGamma = CGX_GetGamma; |
228 device->SetGammaRamp = CGX_SetGammaRamp; | 224 device->SetGammaRamp = CGX_SetGammaRamp; |
229 device->GetGammaRamp = NULL; | 225 device->GetGammaRamp = NULL; |
230 #ifdef HAVE_OPENGL | 226 #if SDL_VIDEO_OPENGL |
231 device->GL_LoadLibrary = CGX_GL_LoadLibrary; | 227 device->GL_LoadLibrary = CGX_GL_LoadLibrary; |
232 device->GL_GetProcAddress = CGX_GL_GetProcAddress; | 228 device->GL_GetProcAddress = CGX_GL_GetProcAddress; |
233 device->GL_GetAttribute = CGX_GL_GetAttribute; | 229 device->GL_GetAttribute = CGX_GL_GetAttribute; |
234 device->GL_MakeCurrent = CGX_GL_MakeCurrent; | 230 device->GL_MakeCurrent = CGX_GL_MakeCurrent; |
235 device->GL_SwapBuffers = CGX_GL_SwapBuffers; | 231 device->GL_SwapBuffers = CGX_GL_SwapBuffers; |