<commit_before>SDL2 binding for Go
===================
go-sdl2 is a straightforward Go wrapper for SDL2.  
  
Where makes sense, it'll use methods instead of functions (such as
window.UpdateSurface() or surface.Free() instead of
sdl.UpdateWindowSurface(window) or sdl.FreeSurface(surface)).

Requirements
============
* [SDL2](http://libsdl.org/download-2.0.php)
* [SDL2_mixer (optional)](http://www.libsdl.org/projects/SDL_mixer/)
* [SDL2_image (optional)](http://www.libsdl.org/projects/SDL_image/)
* [SDL2_ttf (optional)](http://www.libsdl.org/projects/SDL_ttf/)


On __Fedora 20__, you can run this command to install all the development
files:  
`yum install SDL2{,_mixer,_image,_ttf}-devel`

On __Arch Linux__, type:  
`pacman -S sdl2{,_mixer,_image,_ttf}`

Installation
============
To get the bindings, type:  
`go get -v github.com/jackyb/go-sdl2/sdl`  
`go get -v github.com/jackyb/go-sdl2/sdl_mixer`  
`go get -v github.com/jackyb/go-sdl2/sdl_image`
`go get -v github.com/jackyb/go-sdl2/sdl_ttf`

or type this if you use Bash terminal:  
`go get -v github.com/jackyb/go-sdl2/sdl{,_mixer,_image,_ttf}`

Example
=======
	package main

	import "github.com/jackyb/go-sdl2/sdl"

	func main() {
		window := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED,
				800, 600, sdl.WINDOW_SHOWN)
		surface := window.GetSurface()

		rect := sdl.Rect { 0, 0, 200, 200 }
		surface.FillRect(&rect, 0xffff0000)
		window.UpdateSurface()

		sdl.Delay(1000)
		window.Destroy()
	}


For more complete examples, see inside the _examples_ folder.

Documentation
=============
For now, take a look at http://godoc.org/github.com/jackyb/go-sdl2/sdl.<commit_msg>Added SDL2 packages installation command for Ubuntu (and a few tweaks) in README<commit_after>SDL2 binding for Go
===================
go-sdl2 is a straightforward Go wrapper for SDL2.  
  
Where makes sense, it'll use methods instead of functions (such as
window.UpdateSurface() or surface.Free() instead of
sdl.UpdateWindowSurface(window) or sdl.FreeSurface(surface)).

Requirements
============
* [SDL2](http://libsdl.org/download-2.0.php)
* [SDL2_mixer (optional)](http://www.libsdl.org/projects/SDL_mixer/)
* [SDL2_image (optional)](http://www.libsdl.org/projects/SDL_image/)
* [SDL2_ttf (optional)](http://www.libsdl.org/projects/SDL_ttf/)

Below is some commands that can be used to install the required packages in
some Linux distributions. Some older versions of the distributions such as
Ubuntu 13.10 may also be used but it may miss an optional package such as
_libsdl2-ttf-dev_ on Ubuntu 13.10's case which is available in Ubuntu 14.04.

On __Ubuntu 14.04 and above__, type:  
`apt-get install libsdl2{,-mixer,-image,-ttf}-dev`

On __Fedora 20 and above__, type:  
`yum install SDL2{,_mixer,_image,_ttf}-devel`

On __Arch Linux__, type:  
`pacman -S sdl2{,_mixer,_image,_ttf}`

Installation
============
To get the bindings, type:  
`go get -v github.com/jackyb/go-sdl2/sdl`  
`go get -v github.com/jackyb/go-sdl2/sdl_mixer`  
`go get -v github.com/jackyb/go-sdl2/sdl_image`  
`go get -v github.com/jackyb/go-sdl2/sdl_ttf`

or type this if you use Bash terminal:  
`go get -v github.com/jackyb/go-sdl2/sdl{,_mixer,_image,_ttf}`

Example
=======
	package main

	import "github.com/jackyb/go-sdl2/sdl"

	func main() {
		window := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED,
				800, 600, sdl.WINDOW_SHOWN)
		surface := window.GetSurface()

		rect := sdl.Rect { 0, 0, 200, 200 }
		surface.FillRect(&rect, 0xffff0000)
		window.UpdateSurface()

		sdl.Delay(1000)
		window.Destroy()
	}


For more complete examples, see inside the _examples_ folder.

Documentation
=============
For now, take a look at http://godoc.org/github.com/jackyb/go-sdl2/sdl.
{'fraction_non_alphanumeric': 0.15464466329518234, 'fraction_numerical': 0.027947830715996807, 'mean_word_length': 4.4701601164483264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1578669', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1325, 'n_words': 345}