From fa5a619e504ac6263394edafc8a23d387dc94a53 Mon Sep 17 00:00:00 2001 From: duysqubix Date: Sat, 7 Oct 2023 13:05:17 -0500 Subject: [PATCH] updated references to gopxl --- README.md | 8 ++++---- doc.go | 2 +- examples/demo/main.go | 4 ++-- frame.go | 2 +- go.mod | 5 +++-- go.sum | 2 ++ orphan.go | 2 +- shader.go | 2 +- texture.go | 2 +- vertex.go | 2 +- 10 files changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f862d7f..1accde8 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# glhf [![GoDoc](https://godoc.org/github.com/faiface/glhf?status.svg)](http://godoc.org/github.com/faiface/glhf) [![Report card](https://goreportcard.com/badge/github.com/faiface/glhf)](https://goreportcard.com/report/github.com/faiface/glhf) +# glhf [![GoDoc](https://godoc.org/github.com/gopxl/glfh?status.svg)](http://godoc.org/github.com/gopxl/glfh) [![Report card](https://goreportcard.com/badge/github.com/gopxl/glfh)](https://goreportcard.com/report/github.com/gopxl/glfh) open**GL** **H**ave **F**un - A Go package that makes life with OpenGL enjoyable. ``` -go get github.com/faiface/glhf +go get github.com/gopxl/glfh ``` ## Main features @@ -27,7 +27,7 @@ request_. ## Code -The following are parts of the demo program, which can be found in the [examples](https://github.com/faiface/glhf/tree/master/examples/demo). +The following are parts of the demo program, which can be found in the [examples](https://github.com/gopxl/glfh/tree/master/examples/demo). ```go // ... GLFW window creation and stuff ... @@ -166,7 +166,7 @@ for !shouldQuit { It uses OpenGL 3.3 and uses [`github.com/go-gl/gl/v3.3-core/gl`](https://github.com/go-gl/gl/tree/master/v3.3-core/gl). -### Why do I have to use `github.com/faiface/mainthread` package with GLHF? +### Why do I have to use `github.com/gopxl/mainthread` package with GLHF? First of all, OpenGL has to be done from one thread and many operating systems require, that the one thread will be the main thread of your application. diff --git a/doc.go b/doc.go index 3a25b1b..58f10f5 100644 --- a/doc.go +++ b/doc.go @@ -1,6 +1,6 @@ // Package glhf provides abstractions around the basic OpenGL primitives and operations. // -// All calls should be done from the main thread using "github.com/faiface/mainthread" package. +// All calls should be done from the main thread using "github.com/gopxl/mainthread" package. // // This package deliberately does not handle nor report trivial OpenGL errors, it's up to you to // cause none. It does of course report errors like shader compilation error and such. diff --git a/examples/demo/main.go b/examples/demo/main.go index a692d0a..3fd0138 100644 --- a/examples/demo/main.go +++ b/examples/demo/main.go @@ -6,8 +6,8 @@ import ( _ "image/png" "os" - "github.com/faiface/glhf" - "github.com/faiface/mainthread" + "github.com/gopxl/glfh" + "github.com/gopxl/mainthread" "github.com/go-gl/glfw/v3.1/glfw" ) diff --git a/frame.go b/frame.go index 1cb7af3..bd097f3 100644 --- a/frame.go +++ b/frame.go @@ -3,7 +3,7 @@ package glhf import ( "runtime" - "github.com/faiface/mainthread" + "github.com/gopxl/mainthread" "github.com/go-gl/gl/v3.3-core/gl" ) diff --git a/go.mod b/go.mod index 8a9c1df..753a2cb 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,12 @@ -module github.com/faiface/glhf +module github.com/gopxl/glfh go 1.16 require ( - github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 + github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 // indirect github.com/go-gl/gl v0.0.0-20210905235341-f7a045908259 github.com/go-gl/glfw v0.0.0-20210727001814-0db043d8d5be github.com/go-gl/mathgl v1.0.0 + github.com/gopxl/mainthread v0.0.0-20171120011319-8b78f0a41ae3 github.com/pkg/errors v0.9.1 ) diff --git a/go.sum b/go.sum index 125ae4d..fef95bd 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/go-gl/glfw v0.0.0-20210727001814-0db043d8d5be h1:UVW91pfMB1GRQfVwC7// github.com/go-gl/glfw v0.0.0-20210727001814-0db043d8d5be/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/mathgl v1.0.0 h1:t9DznWJlXxxjeeKLIdovCOVJQk/GzDEL7h/h+Ro2B68= github.com/go-gl/mathgl v1.0.0/go.mod h1:yhpkQzEiH9yPyxDUGzkmgScbaBVlhC06qodikEM0ZwQ= +github.com/gopxl/mainthread v0.0.0-20171120011319-8b78f0a41ae3 h1:nNL+F+Nn5h0d2Q2+St6U974DJ8lsXqN1x2OmkylhHV0= +github.com/gopxl/mainthread v0.0.0-20171120011319-8b78f0a41ae3/go.mod h1:kdgse3uN3IBQARJKuOORTf3XllmX67ukHQnj5KoOEYk= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f h1:FO4MZ3N56GnxbqxGKqh+YTzUWQ2sDwtFQEZgLOxh9Jc= diff --git a/orphan.go b/orphan.go index 7e93751..3412e32 100644 --- a/orphan.go +++ b/orphan.go @@ -3,7 +3,7 @@ package glhf import "github.com/go-gl/gl/v3.3-core/gl" // Init initializes OpenGL by loading function pointers from the active OpenGL context. -// This function must be manually run inside the main thread (using "github.com/faiface/mainthread" +// This function must be manually run inside the main thread (using "github.com/gopxl/mainthread" // package). // // It must be called under the presence of an active OpenGL context, e.g., always after calling diff --git a/shader.go b/shader.go index ad4c8f0..af5d78f 100644 --- a/shader.go +++ b/shader.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime" - "github.com/faiface/mainthread" + "github.com/gopxl/mainthread" "github.com/go-gl/gl/v3.3-core/gl" "github.com/go-gl/mathgl/mgl32" ) diff --git a/texture.go b/texture.go index 041c9b5..81da668 100644 --- a/texture.go +++ b/texture.go @@ -3,7 +3,7 @@ package glhf import ( "runtime" - "github.com/faiface/mainthread" + "github.com/gopxl/mainthread" "github.com/go-gl/gl/v3.3-core/gl" "github.com/go-gl/mathgl/mgl32" ) diff --git a/vertex.go b/vertex.go index 25e8101..70cbb0f 100644 --- a/vertex.go +++ b/vertex.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime" - "github.com/faiface/mainthread" + "github.com/gopxl/mainthread" "github.com/go-gl/gl/v3.3-core/gl" "github.com/pkg/errors" )