Back to / shiny / driver / gldriver

Package gldriver

Latest Go to latest

The highest tagged major version is .

Published: Sep 17, 2020 | License: BSD-3-Clause | Module:


Package gldriver provides an OpenGL driver for accessing a screen.


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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier