backend

package
v0.0.0-...-efe4bef Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCapabilities

func SetCapabilities()

Types

type Backend

type Backend struct {
	Actions,
	Returns sync.Map

	*goglbackend.GoGLBackend
	Canvas *canvas.Canvas
}

func New

func New(window *glfw.Window) (c *Backend, err error)

func (*Backend) Append

func (c *Backend) Append(action backend.Action) (result any)

func (*Backend) AppendAndDelete

func (c *Backend) AppendAndDelete(action backend.Action) (result any)

func (*Backend) Delete

func (c *Backend) Delete(action *backend.Action)

func (*Backend) Frame

func (c *Backend) Frame(window *glfw.Window)

func (*Backend) GetCanvas

func (c *Backend) GetCanvas() *canvas.Canvas

func (*Backend) Load

func (c *Backend) Load(action *backend.Action) (result any)

func (*Backend) SetCanvasBounds

func (c *Backend) SetCanvasBounds(x, y, w, h int)

func (*Backend) Store

func (c *Backend) Store(action *backend.Action)

Jump to

Keyboard shortcuts

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