Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 904 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 904 Bytes

Go Bindings for SDL 2

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.

Prerequisites

  • SDL 2 (Still in development as of 2012-08-01.)
  • Go