Scroll to navigation

SDL_CreateShapedWindow(3) SDL3 FUNCTIONS SDL_CreateShapedWindow(3)

NAME

SDL_CreateShapedWindow - Create a window that can be shaped with the specified dimensions and flags.

SYNOPSIS

#include "SDL3/SDL.h"
SDL_Window* SDL_CreateShapedWindow(const char *title, int w, int h, Uint32 flags);

FUNCTION PARAMETERS

The title of the window, in UTF-8 encoding.
The width of the window.
The height of the window.
The flags for the window, a mask of SDL_WINDOW_BORDERLESS
with any of the following: :: SDL_WINDOW_OPENGL , :: SDL_WINDOW_MOUSE_GRABBED , :: SDL_WINDOW_HIDDEN , :: SDL_WINDOW_RESIZABLE , :: SDL_WINDOW_MAXIMIZED , :: SDL_WINDOW_MINIMIZED , :: SDL_WINDOW_BORDERLESS
is always set, and :: SDL_WINDOW_FULLSCREEN
is always unset.

RETURN VALUE

Returns the window created, or NULL if window creation failed.

AVAILABILITY

This function is available since SDL 3.0.0.

SEE ALSO

SDL_DestroyWindow(3)

SDL 3.0.0 SDL