Closed TooManySugar closed 1 year ago
Added binding to functions from SDL_shape.h (unchanged since SDL 2.0.0):
SDL_CreateShapedWindow
SDL_IsShapedWindow
SDL_SetWindowShape
SDL_GetShapedWindowMode
And enums from that header too
SDL functions there janky but I tried to abstract out them in the same manner as done in events.go
Demonstration example of functions usage can be found here: github.com/TooManySugar/go-sdl2-shaped-window-example
Thanks for pull request @TooManySugar! I will include this in v0.4.31 and the master branch.
v0.4.31
master
Added binding to functions from SDL_shape.h (unchanged since SDL 2.0.0):
SDL_CreateShapedWindow
SDL_IsShapedWindow
SDL_SetWindowShape
SDL_GetShapedWindowMode
And enums from that header too
SDL functions there janky but I tried to abstract out them in the same manner as done in events.go
Demonstration example of functions usage can be found here: github.com/TooManySugar/go-sdl2-shaped-window-example