Skip to content

jonhanks/Go-SDL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a slightly modified fork of 0xe2-0x9a-0x9b version of Banthar's Go-SDL. The main changes are to use errors instead of integers for return values.

I used 0xe2-0x9a-0x9b's fork as I could get it to run on OS X. 0xe2-0x9a-0x9b has since erased his account.

This is an improved version of Banthar's Go-SDL.

The improvements/differences are:

  • SDL functions (except for SDL-mixer) can be safely called from concurrently running goroutines

  • All SDL events are delivered via a Go channel

  • Support for low-level SDL sound functions

  • Can be installed in parallel to Banthar's Go-SDL

  • The import paths are "github.com/jonhanks/Go-SDL/..."

Installation

Make sure you have SDL, SDL-image, SDL-mixer and SDL-ttf (all in -dev version).

Installing libraries and examples:

go get -v github.com/0xe2-0x9a-0x9b/Go-SDL/...

Credits

Music to test SDL-mixer is by Kevin MacLeod.

About

Go bindings for SDL

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 94.2%
  • C 5.8%