File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1+ [ ![ Tests] ( https://github.com/fyne-io/gl-js/actions/workflows/tests.yml/badge.svg )] ( https://github.com/fyne-io/gl-js/actions/workflows/tests.yml )
2+ [ ![ Static Analysis] ( https://github.com/fyne-io/gl-js/actions/workflows/analysis.yml/badge.svg )] ( https://github.com/fyne-io/gl-js/actions/workflows/analysis.yml )
13[ ![ GoDoc] ( https://godoc.org/github.com/fyne-io/gl-js?status.svg )] ( https://godoc.org/github.com/fyne-io/gl-js )
24
35# GL
@@ -16,22 +18,19 @@ This is a fork of golang.org/x/mobile/gl package with [CL 8793](https://go-revie
1618merged in and Windows support added. This package is fully functional, but may eventually become superceded by
1719the new x/mobile/gl plan. It will exist and be fully supported until it can be safely replaced by a better package.
1820
19- Installation
20- ------------
21+ ## Installation
2122
2223``` bash
23- go get -u github.com/fyne-io/gl-js/...
24- GOARCH=js go get -u -d github.com/fyne-io/gl-js/...
24+ go get github.com/fyne-io/gl-js
2525```
2626
27- Usage
28- -----
27+ ## Usage
2928
3029This OpenGL binding has a ContextWatcher, which implements [ glfw.ContextWatcher] ( https://godoc.org/github.com/goxjs/glfw#ContextWatcher )
3130interface. Recommended usage is with github.com/fyne-io/glfw-js package, which accepts a ContextWatcher in its Init, and takes on the responsibility
3231of notifying it when context is made current or detached.
3332
34- ``` Go
33+ ``` go
3534if err := glfw.Init (gl.ContextWatcher ); err != nil {
3635 // Handle error.
3736}
You can’t perform that action at this time.
0 commit comments