Skip to content
Go bindings for SDL
Go C Makefile
Latest commit e9b5408 Mar 8, 2016 @banthar Merge pull request #66 from michelmno/master
create sdl/structs_ppc64.go and sdl/structs_ppc64le.go
Failed to load latest commit information.
doc Goinstall compatible. Dec 18, 2011
gfx
gui gofmt. Dec 20, 2011
mixer Goinstall compatible. Dec 18, 2011
sdl
test
ttf ttf: add outline and hinting functions Feb 20, 2012
.gitignore split constants and structures Sep 13, 2010
Makefile gofmt. Jul 21, 2011
README.md Replace goinstall with go get May 11, 2015
TODO Remove sdlgui.surfimg. sdl.Surface satisfies draw.Image. Jul 3, 2011

README.md

Go-SDL

Go-SDL provides bindings for the SDL, SDL_image, SDL_mixer, and SDL_ttf libraries.

Prerequisites

Installation

To install all of the relevant libraries, use the following:

go get github.com/banthar/Go-SDL/sdl
go get github.com/banthar/Go-SDL/ttf
go get github.com/banthar/Go-SDL/gfx
go get github.com/banthar/Go-SDL/mixer

If you don't have write permission for GOPATH/GOROOT, you may need to run the previous command as root. If you get errors while trying to run it using sudo, it's possible that the GOROOT/GOOS/GOARCH/GOBIN variables are not available to the make command. You can try using '-E' to preserve the environment:

sudo -E go get github.com/banthar/Go-SDL/sdl
sudo -E go get github.com/banthar/Go-SDL/ttf
sudo -E go get github.com/banthar/Go-SDL/gfx
sudo -E go get github.com/banthar/Go-SDL/mixer

It's also possible to install just using make:

make install

or

sudo -E make install

Usage

To import, use the following:

import "github.com/banthar/Go-SDL/sdl"

Replace the final 'sdl' with the library that you want to import.

Credits

  • banthar
  • Kevin MacLeod (mixer test music)
Something went wrong with that request. Please try again.