Skip to content

andrebq/glfw

 
 

Repository files navigation

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

Only use the master branch since the others could be deleted without previous notice. Go bindings for libglfw (https://github.com/jteeuwen/glfw).

Resources

License

Unknown, Zlib licenses found

Licenses found

Unknown
LICENSE
Zlib
GLFW_LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.9%
  • C 2.1%