From deb60fe42f569c9c4d12d3225c23ba5cce49e6bf Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Sat, 30 May 2015 18:37:14 -0700 Subject: [PATCH] Update to goxjs/glfw API change. --- 111/main.go | 2 +- 113/main.go | 2 +- 114/main.go | 2 +- 115/main.go | 2 +- 97/main.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/111/main.go b/111/main.go index 7df1dc5..4fe9d01 100644 --- a/111/main.go +++ b/111/main.go @@ -92,7 +92,7 @@ var cameraX, cameraY float64 = 825, 510 var polygon gist6545684.Polygon func main() { - err := glfw.Init(gl.ContextSwitcher) + err := glfw.Init(gl.ContextWatcher) if err != nil { panic(err) } diff --git a/113/main.go b/113/main.go index 5e7834d..19c1f59 100644 --- a/113/main.go +++ b/113/main.go @@ -97,7 +97,7 @@ var windowSize = [2]int{400, 400} var mouseX, mouseY float64 = 50, 100 func main() { - err := glfw.Init(gl.ContextSwitcher) + err := glfw.Init(gl.ContextWatcher) if err != nil { panic(err) } diff --git a/114/main.go b/114/main.go index b194a51..a78d12a 100644 --- a/114/main.go +++ b/114/main.go @@ -120,7 +120,7 @@ func createVbo3Ubyte(vertices []uint8) gl.Buffer { var windowSize = [2]int{1024, 800} func main() { - err := glfw.Init(gl.ContextSwitcher) + err := glfw.Init(gl.ContextWatcher) if err != nil { panic(err) } diff --git a/115/main.go b/115/main.go index 193e0e6..b9d9b66 100644 --- a/115/main.go +++ b/115/main.go @@ -138,7 +138,7 @@ func createVbo3Ubyte(vertices []uint8) gl.Buffer { var windowSize = [2]int{1024, 800} func main() { - err := glfw.Init(gl.ContextSwitcher) + err := glfw.Init(gl.ContextWatcher) if err != nil { panic(err) } diff --git a/97/main.go b/97/main.go index dd82694..4e48d00 100644 --- a/97/main.go +++ b/97/main.go @@ -231,7 +231,7 @@ func createVbo3Ubyte(vertices []uint8) gl.Buffer { var windowSize = [2]int{1024, 800} func main() { - err := glfw.Init(gl.ContextSwitcher) + err := glfw.Init(gl.ContextWatcher) if err != nil { panic(err) }