mechraster

package
v0.0.0-...-a3e6692 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mechraster provides a rasteriser that can draw scenes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embedded

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

An Embedded rasteriser that implements the rasteriser interface.

func NewEmbedded

func NewEmbedded() (*Embedded, wiregl.MainThread, <-chan error)

NewEmbedded constructs a new Embedded rasteriser. It is a part of the same process as the caller.

func (*Embedded) Rasterise

func (ras *Embedded) Rasterise(
	sc wiregl.Scene,
) (wiregl.Pixels, error)

Rasterise the given scene.

To work the main thread needs to be concurrently executing functions sent over the receiver rasteriser's channel-of-functions returned at construction.

type Rasteriser

type Rasteriser interface {
	Rasterise(wiregl.Scene) (wiregl.Pixels, error)
}

A Rasteriser accepts scenes and then returns their pixels.

Jump to

Keyboard shortcuts

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