Skip to content

DeedleFake/sdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9a9b71d · May 16, 2014

History

50 Commits
Sep 2, 2012
Aug 17, 2013
Aug 18, 2013
Jul 30, 2012
May 16, 2014
Aug 18, 2013
Aug 2, 2012
Feb 25, 2013
Aug 21, 2012
Aug 21, 2012
Aug 3, 2012
Aug 3, 2012
Aug 3, 2012
Aug 3, 2012
Aug 1, 2012
Aug 17, 2013
Aug 1, 2012
Aug 3, 2012
Aug 18, 2013
Aug 3, 2012
Aug 2, 2012
Aug 3, 2012
Aug 2, 2012
Sep 2, 2012
Sep 2, 2012
Sep 2, 2012
Aug 3, 2012
Aug 3, 2012
Aug 3, 2012
Mar 13, 2013
Aug 3, 2012
Aug 3, 2012
Aug 17, 2013
Aug 17, 2013
Aug 17, 2013
Aug 3, 2012
Aug 17, 2013
Jul 31, 2012
Aug 3, 2012
Jul 31, 2012
Aug 17, 2013
Aug 2, 2012
Aug 3, 2012
Aug 2, 2012
Feb 25, 2013

Repository files navigation

Go Bindings for SDL 2

This Go package provides bindings for SDL 2. For bindings for SDL 1 see banthar's GitHub repo.

While the package mostly follows the C API's naming conventions, some changes have been made. The 'SDL_' prefix of the C definitions has been removed. Thus, the C function

SDL_CreateWindow()

is

sdl.CreateWindow()

in this package.

In addition to this, some functions have been changed to be methods of related types where it seemed appropriate. Thus,

SDL_CreateRenderer()

is

(*Window).CreateRenderer()

in this package. Some of these methods' names differ from the originals as well. For example,

SDL_SetWindowFullscreen()

has been changed to

(*Window).SetFullscreen()

For a full API reference, see godoc.org.

Note: This is not yet finished. It is capable of loading and displaying images and handling events, but many things have not been implemented yet, nor has it been thoroughly tested. Expect bugs and missing features.

Prerequisites

Installation

  1. Set up your GOPATH.
  2. Run the following command:

go get github.com/DeedleFake/sdl