comparison src/video/SDL_sysvideo.h @ 1675:d33dcfc3fde7 SDL-1.3

Overlay functions are being replaced by YUV textures. If the driver doesn't support YUV textures, they can be emulated by backing the texture with an RGB texture and using the software conversion routines. Note that it doesn't make sense to lock a portion of a YV12 texture, since you'd need to return three pixel pointers and pitch values instead of the one that's available through the API. I'm guessing that's one of the reasons DirectX 9 doesn't support this format at all.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 11 Jun 2006 07:30:16 +0000
parents 624e1412fbba
children e136f3ffdc1b
comparison
equal deleted inserted replaced
1674:7688a73b25b1 1675:d33dcfc3fde7
197 void (*DestroyWindow) (_THIS, SDL_Window * window); 197 void (*DestroyWindow) (_THIS, SDL_Window * window);
198 198
199 /* Get some platform dependent window information */ 199 /* Get some platform dependent window information */
200 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window, 200 SDL_bool(*GetWindowWMInfo) (_THIS, SDL_Window * window,
201 SDL_SysWMinfo * info); 201 SDL_SysWMinfo * info);
202
203 /* Create a YUV video surface (possibly overlay) of the given
204 format. The hardware should be able to perform at least 2x
205 scaling on display.
206 */
207 SDL_Overlay *(*CreateYUVOverlay) (_THIS, int width, int height,
208 Uint32 format, SDL_Surface * display);
209 202
210 /* Reverse the effects VideoInit() -- called if VideoInit() fails 203 /* Reverse the effects VideoInit() -- called if VideoInit() fails
211 or if the application is shutting down the video subsystem. 204 or if the application is shutting down the video subsystem.
212 */ 205 */
213 void (*VideoQuit) (_THIS); 206 void (*VideoQuit) (_THIS);