Mercurial > sdl-ios-xcode
diff src/video/win32/SDL_win32shape.h @ 4813:5b4c7d7d8953
Wrote out the system for breaking shape-masks into quad-trees of rectangles, and added code to conglomerate those quad-trees of rectangles into regions for setting shapes under Win32.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Wed, 28 Jul 2010 23:35:24 -0400 |
parents | 329708ffe2a7 |
children | 0b918c186938 |
line wrap: on
line diff
--- a/src/video/win32/SDL_win32shape.h Mon Jul 26 21:49:32 2010 -0400 +++ b/src/video/win32/SDL_win32shape.h Wed Jul 28 23:35:24 2010 -0400 @@ -28,13 +28,12 @@ #include "SDL_video.h" #include "SDL_shape.h" #include "../SDL_sysvideo.h" +#include "../SDL_shape_internals.h" typedef struct { - void* shapebuffer; - Uint32 buffersize; + SDL_ShapeTree *mask_tree; } SDL_ShapeData; -extern SDL_Window* Win32_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags); extern SDL_WindowShaper* Win32_CreateShaper(SDL_Window * window); extern int Win32_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode); extern int Win32_ResizeWindowShape(SDL_Window *window);