app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func New

func New(canvas *wasmdraw.CanvasElement, context *webgl.Context, additional ...Example) (app *Application, err error)

New creates the shared WebGL showcase and appends renderer-specific examples.

func (*Application) Draw

func (a *Application) Draw(dt, width, height float64)

type Example

type Example struct {
	Name string
	Draw func(dt, width, height float64, entered bool)
}

func NewCubeExample

func NewCubeExample(canvas *wasmdraw.CanvasElement, context *webgl.Context) (example Example, err error)

NewCubeExample creates the interactive WebGL cube showcase.

Jump to

Keyboard shortcuts

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