Mercurial > sdl-ios-xcode
comparison src/video/dummy/SDL_nullvideo.c @ 5169:4d39eeaad00b
Added a way to get a framebuffer interface for a window, and also a way to create a software renderer for an arbitrary surface.
The software renderer has been re-routed to use the framebuffer interface, which makes it possible to have software rendering available even on simple ports.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 03 Feb 2011 15:49:37 -0800 |
parents | fb424691cfc7 |
children | b530ef003506 |
comparison
equal
deleted
inserted
replaced
5168:2b1989f59674 | 5169:4d39eeaad00b |
---|---|
42 #include "../SDL_pixels_c.h" | 42 #include "../SDL_pixels_c.h" |
43 #include "../../events/SDL_events_c.h" | 43 #include "../../events/SDL_events_c.h" |
44 | 44 |
45 #include "SDL_nullvideo.h" | 45 #include "SDL_nullvideo.h" |
46 #include "SDL_nullevents_c.h" | 46 #include "SDL_nullevents_c.h" |
47 #include "SDL_nullframebuffer_c.h" | |
47 | 48 |
48 #define DUMMYVID_DRIVER_NAME "dummy" | 49 #define DUMMYVID_DRIVER_NAME "dummy" |
49 | 50 |
50 /* Initialization/Query functions */ | 51 /* Initialization/Query functions */ |
51 static int DUMMY_VideoInit(_THIS); | 52 static int DUMMY_VideoInit(_THIS); |
89 /* Set the function pointers */ | 90 /* Set the function pointers */ |
90 device->VideoInit = DUMMY_VideoInit; | 91 device->VideoInit = DUMMY_VideoInit; |
91 device->VideoQuit = DUMMY_VideoQuit; | 92 device->VideoQuit = DUMMY_VideoQuit; |
92 device->SetDisplayMode = DUMMY_SetDisplayMode; | 93 device->SetDisplayMode = DUMMY_SetDisplayMode; |
93 device->PumpEvents = DUMMY_PumpEvents; | 94 device->PumpEvents = DUMMY_PumpEvents; |
95 device->CreateWindowFramebuffer = SDL_DUMMY_CreateWindowFramebuffer; | |
96 device->UpdateWindowFramebuffer = SDL_DUMMY_UpdateWindowFramebuffer; | |
97 device->DestroyWindowFramebuffer = SDL_DUMMY_DestroyWindowFramebuffer; | |
94 | 98 |
95 device->free = DUMMY_DeleteDevice; | 99 device->free = DUMMY_DeleteDevice; |
96 | 100 |
97 return device; | 101 return device; |
98 } | 102 } |