Skip to content
프로젝트

소개

Go bindings for SDL

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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)

관련 프로젝트 살펴보기

불러오는 중…