21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_COCOA
28 #include "../SDL_sysvideo.h"
36 [windata->
nswindow setStyleMask:NSWindowStyleMaskBorderless];
41 result->mode.parameters.binarizationCutoff = 1;
47 data->context = [windata->nswindow graphicsContext];
65 SDL_CocoaClosure*
data = (SDL_CocoaClosure*)closure;
68 [data->path appendBezierPathWithRect:[data->view convertRect:rect toView:nil]];
78 SDL_CocoaClosure closure;
80 [data->context restoreGraphicsState];
86 [NSGraphicsContext setCurrentContext:data->context];
88 [[NSColor clearColor] set];
93 closure.path = [NSBezierPath bezierPath];
94 closure.window = shaper->
window;
96 [closure.path addClip];
#define SDL_assert(condition)
int Cocoa_ResizeWindowShape(SDL_Window *window)
SDL_WindowShaper * Cocoa_CreateShaper(SDL_Window *window)
int Cocoa_SetWindowShape(SDL_WindowShaper *shaper, SDL_Surface *shape, SDL_WindowShapeMode *shape_mode)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei const GLchar *const * path
void SDL_TraverseShapeTree(SDL_ShapeTree *tree, SDL_TraversalFunction function, void *closure)
SDL_ShapeTree * SDL_CalculateShapeTree(SDL_WindowShapeMode mode, SDL_Surface *shape)
@ ShapeModeDefault
The default mode, a binarized alpha cutoff of 1.
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.