Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
Find a file
2017-05-19 01:23:47 +02:00
easings Golint 2017-02-21 15:26:25 +01:00
examples Update C sources and examples 2017-04-24 18:25:27 +02:00
physics Physics - WIP 2017-05-02 21:49:12 +02:00
raygui Fix ineffectual assignments 2017-02-25 09:55:15 +01:00
raylib Add Vector2 and Mat2 functions 2017-05-02 21:47:48 +02:00
raymath Add Vector2 and Mat2 functions 2017-05-02 21:47:48 +02: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 Update README.md 2017-05-19 01:23:47 +02:00

logo

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 libXcursor-devel libXrandr-devel libXinerama-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.