/glfw

Package glfw provides Go bindings for multi-platform library for OpenGL, OpenGL ES and Vulkan development.

Primary LanguageC

GLFW 3.2 GoDoc

Package glfw provides Go bindings for multi-platform library for OpenGL, OpenGL ES and Vulkan development glfw.org.
All the binding code has automatically been generated with rules defined in glfw.yml.

What about go-gl/glfw?

It's cool, use it: go-gl/glfw. I created this package as a proof of concept that shows how easy it is to create Go bindings for projects like GLFW, also this package avoids any factor of a human error. If some problems with go-gl/glfw arise, I'll have a backup plan! ;)

Also this API allows to pass the C.GLFWwindow handle around, for your unsafe-crazy needs.

Usage

$ brew install glfw # must be >= 3.2
$ go get github.com/golang-ui/glfw

Demo

There is an example app that shows how to kickstart with GLFW development.

$ go get github.com/golang-ui/glfw/cmd/glfw-example

demo screenshot glfw

Rebuilding the package

You will need to get the cgogen tool installed first.

$ git clone https://github.com/golang-ui/glfw && cd glfw
$ make clean
$ make