taezaz / glfw

Go bindings for libglfw

Home Page:http://www.glfw.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLFW

This is a set of Go bindings for libGLFW.

GLFW is a small C library that lets you create and manage an OpenGL context and its associated window, enumerate and change display modes, as well as handle inputs such as keyboard, mouse, joystick and time.

GLFW provides a thin, multi-platform abstraction layer, primarily for applications whose sole graphics output is through the OpenGL API. While GLFW is very useful when developing multi-platform OpenGL applications, single-platform developers can also benefit from avoiding the drudgery of kludgy platform- specific APIs.

This wrapper targets GLFW 2.7

We do not implement the thread/mutex api. Callback functions are working.

Dependencies

Important: libglfw builds/installs itself as a static library by default. This does not work well with go. Eventhough the building of this package may succeed without problems, any application you use it in will likely throw up a range of symbol lookup errors. It is therefor strongly recommended to build libglfw as a SHARED library instead. See the libglfw README and makefiles on how to do this.

For OpenGL usage in examples, use banthar's OpenGL bindings:

go get github.com/banthar/gl
go get github.com/banthar/glu

License

GLFW is licensed under the zlib/libpng license. Its contents can be found in the GLFW_LICENSE file.

This wrapper code is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication license. Its contents can be found at: http://creativecommons.org/publicdomain/zero/1.0/

About

Go bindings for libglfw

http://www.glfw.org

License:Other


Languages

Language:Go 96.5%Language:C 3.5%