+
Skip to content

Dev -> Master #3

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 3 commits into from
Oct 9, 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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 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)
# glhf [![GoDoc](https://godoc.org/github.com/gopxl/glhf?status.svg)](http://godoc.org/github.com/gopxl/glhf) [![Report card](https://goreportcard.com/badge/github.com/gopxl/glhf)](https://goreportcard.com/report/github.com/gopxl/glhf)

open**GL** **H**ave **F**un - A Go package that makes life with OpenGL enjoyable.

```
go get github.com/gopxl/glfh
go get github.com/gopxl/glhf
```

## 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/gopxl/glfh/tree/master/examples/demo).
The following are parts of the demo program, which can be found in the [examples](https://github.com/gopxl/glhf/tree/master/examples/demo).

```go
// ... GLFW window creation and stuff ...
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,9 +6,9 @@ import (
_ "image/png"
"os"

"github.com/gopxl/glfh"
"github.com/gopxl/mainthread"
"github.com/go-gl/glfw/v3.1/glfw"
"github.com/gopxl/glhf"
"github.com/gopxl/mainthread"
)

func loadImage(path string) (*image.NRGBA, error) {
Expand Down
18 changes: 11 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
module github.com/gopxl/glfh
module github.com/gopxl/glhf

go 1.16
go 1.21

require (
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/go-gl/gl v0.0.0-20211210172815-726fda9656d6
github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b
github.com/go-gl/mathgl v1.1.0
github.com/gopxl/mainthread v1.0.0
github.com/pkg/errors v0.9.1
)

require (
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 // indirect
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f // indirect
)
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3 h1:baVdMKlASEHrj19iqjARrPbaRisD7EuZEVJj6ZMLl1Q=
github.com/faiface/mainthread v0.0.0-20171120011319-8b78f0a41ae3/go.mod h1:VEPNJUlxl5KdWjDvz6Q1l+rJlxF2i6xqDeGuGAxa87M=
github.com/go-gl/gl v0.0.0-20210905235341-f7a045908259 h1:8q7+xl2D2qHPLTII1t4vSMNP2VKwDcn+Avf2WXvdB1A=
github.com/go-gl/gl v0.0.0-20210905235341-f7a045908259/go.mod h1:wjpnOv6ONl2SuJSxqCPVaPZibGFdSci9HFocT9qtVYM=
github.com/go-gl/glfw v0.0.0-20210727001814-0db043d8d5be h1:UVW91pfMB1GRQfVwC7//RGVbqX6Ea8jURmJhlANak1M=
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/go-gl/gl v0.0.0-20211210172815-726fda9656d6 h1:zDw5v7qm4yH7N8C8uWd+8Ii9rROdgWxQuGoJ9WDXxfk=
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6/go.mod h1:9YTyiznxEY1fVinfM7RvRcjRHbw2xLBJ3AAGIT0I4Nw=
github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b h1:2hdUMUOJuLQkhaPAwoyOeSzoaBydYEkXkBEuqDuDBfg=
github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b/go.mod h1:wyvWpaEu9B/VQiV1jsPs7Mha9I7yto/HqIBw197ZAzk=
github.com/go-gl/mathgl v1.1.0 h1:0lzZ+rntPX3/oGrDzYGdowSLC2ky8Osirvf5uAwfIEA=
github.com/go-gl/mathgl v1.1.0/go.mod h1:yhpkQzEiH9yPyxDUGzkmgScbaBVlhC06qodikEM0ZwQ=
github.com/gopxl/mainthread v1.0.0 h1:Giw7UTkiCo1mB7dkSis8TgLtaCz9+ac4VM4Wq+qHuTw=
github.com/gopxl/mainthread v1.0.0/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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载