gldriver

package
v0.0.0-...-04b2079 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause Imports: 26 Imported by: 17

Documentation

Overview

Package gldriver provides an OpenGL driver for accessing a screen.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL