This Go package provides bindings for SDL 2. It mostly follows the same API, but substitutes the 'SDL_' prefix in the C definitions with the sdl package prefix. Thus, the C function
SDL_CreateWindow()
would be
sdl.CreateWindow()
in this package. Also, some functions have been changed to methods of related types where it seemed appropriate. Thus, this package's equivalent for
SDL_CreateRenderer()
is
(*Window)CreateRenderer()
in this package.
Note: This is not yet finished. It is capable of loading and displaying images and handling events, but it many things do not have bindings, nor has it been thourouly tested. Expect bugs and missing features.