+
Skip to content

updated references to gopxl #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ...
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions examples/demo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion orphan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion shader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion texture.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion vertex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载