gl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 24 Imported by: 1

Documentation

Overview

Package gl contains an OpenGL implementation of the gxui.Driver interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDriver

func StartDriver(appRoutine func(driver gxui.Driver), opts ...Opt)

StartDriver starts the gl driver with the given appRoutine.

Types

type CallQueue

type CallQueue struct {
	// contains filtered or unexported fields
}

func NewCallQueue

func NewCallQueue() *CallQueue

func (*CallQueue) Close

func (c *CallQueue) Close()

func (*CallQueue) Inject

func (c *CallQueue) Inject(call func())

func (*CallQueue) Pop

func (c *CallQueue) Pop() (func(), bool)

func (*CallQueue) PopWhenReady

func (c *CallQueue) PopWhenReady() (func(), bool)

type Opt

type Opt interface {
	Apply(gxui.Driver) gxui.Driver
}

An Opt is a type which modifies the Driver, usually during setup.

func Debug

func Debug() Opt

Debug is an Opt that sets d to debug mode (so that d.Debug() == true).

type OptFunc

type OptFunc func(gxui.Driver) gxui.Driver

An OptFunc is an Opt that doesn't carry any state.

func (OptFunc) Apply

func (f OptFunc) Apply(d gxui.Driver) gxui.Driver

Apply implements Opt.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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