Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Find a file
2017-03-10 15:01:42 +01:00
easings Golint 2017-02-21 15:26:25 +01:00
examples Update README.md 2017-03-07 17:21:12 +01:00
physics Golint 2017-02-21 17:16:26 +01:00
raygui Fix ineffectual assignments 2017-02-25 09:55:15 +01:00
raylib Add new functions, update C sources 2017-03-10 15:01:42 +01:00
raymath Golint 2017-02-21 15:19:22 +01:00
.travis.yml Bundle GLFW 2017-02-21 18:51:21 +01:00
LICENSE Initial commit 2017-01-27 09:35:30 +01:00
Makefile Travis add X libraries 2017-01-31 20:51:01 +01:00
README.md RPi example 2017-02-22 12:11:18 +01:00

raylib-go Build Status GoDoc Go Report Card

Golang bindings for raylib, a simple and easy-to-use library to learn videogames programming.

screenshot

Requirements

Ubuntu
apt-get install libopenal-dev libxi-dev libxinerama-dev libxcursor-dev libxxf86vm-dev
Fedora
dnf install openal-soft-devel mesa-libGL-devel libXi-devel
OS X

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 
Android

Android example.

Raspberry Pi

RPi example.

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.