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) ||
#define SDL_assert(condition)
#define SDL_SetWindowPosition
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
SDL_ShapeTree * SDL_CalculateShapeTree(SDL_WindowShapeMode mode, SDL_Surface *shape)
void SDL_TraverseShapeTree(SDL_ShapeTree *tree, SDL_TraversalFunction function, void *closure)
void SDL_FreeShapeTree(SDL_ShapeTree **shape_tree)
#define SDL_INVALID_SHAPE_ARGUMENT
@ ShapeModeColorKey
A color key is applied.
@ ShapeModeDefault
The default mode, a binarized alpha cutoff of 1.
int Win32_ResizeWindowShape(SDL_Window *window)
int Win32_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
SDL_WindowShaper * Win32_CreateShaper(SDL_Window *window)
EGLSurface EGLNativeWindowType * window
A collection of pixels used in software blitting.
The type used to identify a window.
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.