Mercurial > sdl-ios-xcode
comparison src/video/windows/SDL_windowsvideo.c @ 5178:9b2e99ebd099
Added the Windows framebuffer implementation.
This actually ends up being faster than Direct3D with a dynamic texture. (???)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 04 Feb 2011 12:29:58 -0800 |
parents | fb424691cfc7 |
children | 3a8a452b49f0 |
comparison
equal
deleted
inserted
replaced
5177:b9cf75615028 | 5178:9b2e99ebd099 |
---|---|
26 #include "SDL_mouse.h" | 26 #include "SDL_mouse.h" |
27 #include "../SDL_sysvideo.h" | 27 #include "../SDL_sysvideo.h" |
28 #include "../SDL_pixels_c.h" | 28 #include "../SDL_pixels_c.h" |
29 | 29 |
30 #include "SDL_windowsvideo.h" | 30 #include "SDL_windowsvideo.h" |
31 #include "SDL_windowsframebuffer.h" | |
31 #include "SDL_windowsshape.h" | 32 #include "SDL_windowsshape.h" |
32 | 33 |
33 /* Initialization/Query functions */ | 34 /* Initialization/Query functions */ |
34 static int WIN_VideoInit(_THIS); | 35 static int WIN_VideoInit(_THIS); |
35 static void WIN_VideoQuit(_THIS); | 36 static void WIN_VideoQuit(_THIS); |
126 device->MinimizeWindow = WIN_MinimizeWindow; | 127 device->MinimizeWindow = WIN_MinimizeWindow; |
127 device->RestoreWindow = WIN_RestoreWindow; | 128 device->RestoreWindow = WIN_RestoreWindow; |
128 device->SetWindowGrab = WIN_SetWindowGrab; | 129 device->SetWindowGrab = WIN_SetWindowGrab; |
129 device->DestroyWindow = WIN_DestroyWindow; | 130 device->DestroyWindow = WIN_DestroyWindow; |
130 device->GetWindowWMInfo = WIN_GetWindowWMInfo; | 131 device->GetWindowWMInfo = WIN_GetWindowWMInfo; |
132 device->CreateWindowFramebuffer = WIN_CreateWindowFramebuffer; | |
133 device->UpdateWindowFramebuffer = WIN_UpdateWindowFramebuffer; | |
134 device->DestroyWindowFramebuffer = WIN_DestroyWindowFramebuffer; | |
131 | 135 |
132 device->shape_driver.CreateShaper = Win32_CreateShaper; | 136 device->shape_driver.CreateShaper = Win32_CreateShaper; |
133 device->shape_driver.SetWindowShape = Win32_SetWindowShape; | 137 device->shape_driver.SetWindowShape = Win32_SetWindowShape; |
134 device->shape_driver.ResizeWindowShape = Win32_ResizeWindowShape; | 138 device->shape_driver.ResizeWindowShape = Win32_ResizeWindowShape; |
135 | 139 |