commit | 811fe928d7c61fa8c279c074fdc718996ad07c04 | [log] [tgz] |
---|---|---|
author | Dmitri Shuralyov <shurcooL@gmail.com> | Sun Jan 04 10:20:25 2015 -0800 |
committer | Dmitri Shuralyov <shurcooL@gmail.com> | Sat Feb 21 18:51:42 2015 -0800 |
tree | 5b475621b0a69d1bef8d62d7ec62a87f2315bacb | |
parent | 580367ced74b6c4fedd851d3378b3537bd2a853b [diff] |
Update to glfw/glfw@59afffb3733f3f6f439c61be552ec1b3852692c4.
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).