display

package
v0.0.0-...-cc5a67f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

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

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 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