display

package
v0.0.0-...-d35cbbc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: CC0-1.0 Imports: 12 Imported by: 0

Documentation

Overview

Package display implements an Fyne-backed preview window.

Package display implements an SDL-backed preview window. The way SDL is shoehorned into Go makes for some intereasting limitations in regards to how multithreading is managed. This will probably be replaced by something Vulkan-backed in the future. nolint TODO: Reimplement this using fyne.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	Start()
	Wait()
}

type DisplayTile

type DisplayTile struct {
	Width  int
	Height int
	PosX   int
	PosY   int
	Pixels []float64
}

type FyneDisplay

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

func NewFyneDisplay

func NewFyneDisplay(name string, width int, height int, input chan DisplayTile) *FyneDisplay

func (*FyneDisplay) Start

func (fd *FyneDisplay) Start()

func (*FyneDisplay) Wait

func (fd *FyneDisplay) Wait()

type SDLDisplay

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

func NewSDLDisplay

func NewSDLDisplay(name string, width int, height int, input chan DisplayTile) *SDLDisplay

func (*SDLDisplay) Start

func (sd *SDLDisplay) Start()

func (*SDLDisplay) Wait

func (sd *SDLDisplay) Wait()

Jump to

Keyboard shortcuts

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