commit | d4f8ffbe3018c1c80f7ed21b33990f801de83171 | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <shurcooL@gmail.com> | Sun Oct 26 10:54:37 2014 -0700 |
committer | Dmitri Shuralyov <shurcooL@gmail.com> | Sat Feb 21 18:51:42 2015 -0800 |
tree | 081abbf188327a69d7575435da650b710b590773 | |
parent | 232b70ec221ae0b8209120640afbd9a377bb65c5 [diff] |
Update to glfw/glfw@3b9a14f. Remove glfw_joystick.c, glfw_time.c files since they were removed in GLFW C library. Remove unnecessary CMake, example, documentation and test files of GLFW C library.
go get github.com/go-gl/glfw3
and be done (GLFW sources are included so you don't have to build GLFW on your own)!package main import ( "runtime" glfw "github.com/go-gl/glfw3" ) func init() { runtime.LockOSThread() } func main() { err := glfw.Init() if err != nil { panic(err) } defer glfw.Terminate() window, err := glfw.CreateWindow(640, 480, "Testing", nil, nil) if err != nil { panic(err) } window.MakeContextCurrent() for !window.ShouldClose() { // Do OpenGL stuff window.SwapBuffers() glfw.PollEvents() } }
The revision of GLFW C library used is listed in GLFW_C_REVISION.txt file.
Floating
and AutoIconify
window hints.go get
installation (GLFW source code included in-repo and compiled in so you don't have to build GLFW on your own first and you don't have to distribute shared libraries).