viewer

package
v0.0.0-...-66452f0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viewer

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

Viewer creates in NewViewer an image from gcb.GCodeBuilder and static displays it in ebiten.

func NewViewer

func NewViewer(g *gcb.GCodeBuilder) *Viewer

func (*Viewer) Draw

func (v *Viewer) Draw(screen *ebiten.Image)

func (*Viewer) Layout

func (v *Viewer) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Viewer) Update

func (v *Viewer) Update() error

Jump to

Keyboard shortcuts

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