exp: golang.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

Package Files

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

func Main Uses

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 Uses

func NewContext() (gl.Context, error)

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

Package gldriver imports 26 packages (graph) and is imported by 2 packages. Updated 2017-11-18. Refresh now. Tools for package owners.