Golang bindings for raylib, a simple and easy-to-use library to learn videogames programming.
apt-get install libopenal-dev libxi-dev libxinerama-dev libxcursor-dev libxxf86vm-dev
dnf install openal-soft-devel mesa-libGL-devel libXi-devel
On OS X system OpenAL framework is used.
Windows (MSYS2)
pacman -S mingw-w64-x86_64-openal mingw-w64-x86_64-gcc mingw-w64-x86_64-go git
go get -v github.com/gen2brain/raylib-go/raylib
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.
raylib-go is licensed under an unmodified zlib/libpng license. View LICENSE.