Mercurial > sdl-ios-xcode
diff src/video/SDL_sysvideo.h @ 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 | 2b1989f59674 |
children | b9cf75615028 |
line wrap: on
line diff
--- a/src/video/SDL_sysvideo.h Thu Feb 03 11:16:57 2011 -0800 +++ b/src/video/SDL_sysvideo.h Thu Feb 03 15:49:37 2011 -0800 @@ -80,6 +80,8 @@ SDL_DisplayMode fullscreen_mode; + SDL_Surface *surface; + SDL_WindowShaper *shaper; SDL_WindowUserData *data; @@ -190,7 +192,10 @@ void (*RestoreWindow) (_THIS, SDL_Window * window); void (*SetWindowGrab) (_THIS, SDL_Window * window); void (*DestroyWindow) (_THIS, SDL_Window * window); - + int (*CreateWindowFramebuffer) (_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch); + int (*UpdateWindowFramebuffer) (_THIS, SDL_Window * window, int numrects, SDL_Rect * rects); + void (*DestroyWindowFramebuffer) (_THIS, SDL_Window * window); + /* * * */ /* * Shaped-window functions @@ -344,6 +349,7 @@ extern void SDL_OnWindowShown(SDL_Window * window); extern void SDL_OnWindowHidden(SDL_Window * window); +extern void SDL_OnWindowResized(SDL_Window * window); extern void SDL_OnWindowMinimized(SDL_Window * window); extern void SDL_OnWindowRestored(SDL_Window * window); extern void SDL_OnWindowFocusGained(SDL_Window * window);