Registry / other / veandco-go-sdl2

veandco-go-sdl2

JSON →
library0.4.40gogounverified

Go bindings for SDL2, a cross-platform multimedia library for graphics, audio, and input handling.

go get github.com/veandco/go-sdl2
INSTALL
IMPORT
SIG · VEANDCO-GO-SDL2
V
veandco-go-sdl2
othergov0.4.40
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.

sdl
github.com/veandco/go-sdl2/sdl

Initializes SDL2 and creates a window.

package main import ( "github.com/veandco/go-sdl2/sdl" "log" ) func main() { if err := sdl.Init(sdl.INIT_VIDEO); err != nil { log.Fatal(err) } defer sdl.Quit() window, err := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED, 800, 600, sdl.WINDOW_SHOWN) if err != nil { log.Fatal(err) } defer window.Destroy() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.40latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
18
Resources
veandco-go-sdl2 — go get veandco-go-sdl2 · libregistry