Go to the documentation of this file.
21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_WINDOWS
35 result->mode.parameters.binarizationCutoff = 1;
42 if (resized_properly != 0)
50 HRGN mask_region = *((HRGN*)closure),temp_region =
NULL;
54 if(mask_region !=
NULL) {
55 CombineRgn(mask_region,mask_region,temp_region,RGN_OR);
56 DeleteObject(temp_region);
59 *((HRGN*)closure) = temp_region;
66 HRGN mask_region =
NULL;
68 if( (shaper ==
NULL) ||
SDL_ShapeTree * SDL_CalculateShapeTree(SDL_WindowShapeMode mode, SDL_Surface *shape)
A collection of pixels used in software blitting.
void SDL_FreeShapeTree(SDL_ShapeTree **shape_tree)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
The type used to identify a window.
#define SDL_INVALID_SHAPE_ARGUMENT
A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
WindowShapeMode mode
The mode of these window-shape parameters.
EGLSurface EGLNativeWindowType * window
#define SDL_assert(condition)
int Win32_ResizeWindowShape(SDL_Window *window)
SDL_WindowShaper * Win32_CreateShaper(SDL_Window *window)
void SDL_TraverseShapeTree(SDL_ShapeTree *tree, SDL_TraversalFunction function, void *closure)
The default mode, a binarized alpha cutoff of 1.
int Win32_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
#define SDL_SetWindowPosition