Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
easings | ||
examples | ||
physics | ||
raygui | ||
raylib | ||
raymath | ||
.travis.yml | ||
LICENSE | ||
README.md |
raylib-go 
Golang bindings for raylib, a simple and easy-to-use library to learn videogames programming.
Requirements
- GLFW3 (desktop platform only, not needed on Android and RPi)
- OpenAL Soft (on OS X system framework is used)
Ubuntu
GLFW3 version 3.2 is required.
apt-get install libglfw3-dev libopenal-dev
You might also need:
apt-get install libxi-dev libxinerama-dev libxcursor-dev
Fedora
dnf install glfw-devel openal-soft-devel
OS X
brew install glfw3
Android
Installation
go get -v github.com/gen2brain/raylib-go/raylib
Example
package main
import "github.com/gen2brain/raylib-go/raylib"
func main() {
raylib.InitWindow(800, 450, "raylib [core] example - basic window")
raylib.SetTargetFPS(60)
for !raylib.WindowShouldClose() {
raylib.BeginDrawing()
raylib.ClearBackground(raylib.RayWhite)
raylib.DrawText("Congrats! You created your first window!", 190, 200, 20, raylib.LightGray)
raylib.EndDrawing()
}
raylib.CloseWindow()
}
Check more examples organized by raylib modules.
License
raylib-go is licensed under an unmodified zlib/libpng license. View LICENSE.