commit | 50283a5bea2135e5f4a6eface65e4984a67a313b | [log] [tgz] |
---|---|---|
author | Coşku Baş <cosku.bas@gmail.com> | Mon Jan 19 14:00:36 2015 +0100 |
committer | Dmitri Shuralyov <shurcooL@gmail.com> | Sat Feb 21 18:51:44 2015 -0800 |
tree | 77e655c4934c86c302bf24941ab2b6d1ac0a39fc | |
parent | bf4a6c4398fc9c5c6c42d832e9a73b0eab1cb454 [diff] |
Implement rest of the 3.1 features
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).