Registry / other / goxjs-gl

goxjs-gl

JSON →
library0.0.0-20230705020350-37525f4d9d35gogounverified

A Go cross-platform binding for OpenGL with an OpenGL ES 2-like API, supporting macOS, Linux, Windows, iOS, Android, and WebGL.

go get github.com/goxjs/gl
INSTALL
IMPORT
SIG · GOXJS-GL
G
goxjs-gl
othergov0.0.0-20230705020350-37525f4d9d35
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gl
github.com/goxjs/gl

Clear the screen with a color

package main import "github.com/goxjs/gl" func main() { gl.ClearColor(0, 0, 0, 1) gl.Clear(gl.COLOR_BUFFER_BIT) }
Debug
Known issues
gotchaRequires a valid OpenGL context; not a standalone package.
fix
Use with a windowing library like github.com/goxjs/glfw and ensure context is current.
affects: all
Upgrade
Version history
0.0.0-20230705020350-37525f4d9d35latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Meta
1
Resources
goxjs-gl — go get goxjs-gl · libregistry