veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

Shaped window binds #554

Closed TooManySugar closed 1 year ago

TooManySugar commented 1 year ago

Added binding to functions from SDL_shape.h (unchanged since SDL 2.0.0):

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

veeableful commented 1 year ago

Thanks for pull request @TooManySugar! I will include this in v0.4.31 and the master branch.