shinygolang.org/x/exp/shiny/driver/gldriver Index | Files

package gldriver

import "golang.org/x/exp/shiny/driver/gldriver"

Package gldriver provides an OpenGL driver for accessing a screen.

Index

Functions

func Main

func Main(f func(screen.Screen))

Main is called by the program's main function to run the graphical application.

It calls f on the Screen, possibly in a separate goroutine, as some OS- specific libraries require being on 'the main thread'. It returns when f returns.

func NewContext

func NewContext() (gl.Context, error)

NewContext creates an OpenGL ES context with a dedicated processing thread.

Source Files

buffer.go context.go egl.go gldriver.go screen.go texture.go window.go x11.go

Version
v0.0.0-20250218142911-aa4b98e5adaa (latest)
Published
Feb 18, 2025
Platform
linux/amd64
Imports
26 packages
Last checked
1 month ago

Tools for package owners.