GithubHelp home page GithubHelp logo

go-sdl2's Introduction

Introduction

This a fork of Go-SDL2 which supports SDL version 2.0 in a slightly different way from the version of which this is a fork. That version, in turn, forked Go-SDL to add SDL version 2.0 support.

The SDL2 support is still very much work in progress! It is, in fact, completely broken right now.

Differences from scottfergs library are:

  • No mutex handling.

  • No custom event loop adaptation to use a goroutine and channel: Catch events in the same way as using the C API directly.

  • Remove the audio/ submodule since the file headers have dubious licensing terms (and it probably doesn't work for SDL2).

  • Import paths are "github.com/krig/Go-SDL2/..."

Differences from Banthar's original library 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/scottferg/Go-SDL2/..."

Installation

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

Installing libraries and examples:

go get -v github.com/krig/Go-SDL2/sdl

Credits

Music to test SDL2-mixer is by Kevin MacLeod.

go-sdl2's People

Contributors

daminvar avatar atomsymbol-notifications avatar banthar avatar krig avatar scottferg avatar manveru avatar jgastal avatar pakohan avatar nictuku avatar alecthomas avatar zozor avatar adg avatar cespare avatar davecheney avatar jpgneves avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar hard fork avatar  avatar

Forkers

jbondeson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.