cache

package
v0.0.0-...-7dce3b2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpanCache

type SpanCache []raster.Span

SpanCache stores spans created by Rasterizer

func OptimizeSpans

func OptimizeSpans(sc SpanCache) SpanCache

OptimizeSpans connects bounds when X0 from current Span and X1 from previous one are equal. Y and Alpha must also be equal.

func (SpanCache) Len

func (sc SpanCache) Len() int

func (SpanCache) Less

func (sc SpanCache) Less(i, j int) bool

func (*SpanCache) Paint

func (sc *SpanCache) Paint(ss []raster.Span, done bool)

Paint adds new spans to SpanCache

func (SpanCache) Swap

func (sc SpanCache) Swap(i, j int)

func (SpanCache) UsePainter

func (sc SpanCache) UsePainter(p raster.Painter)

UsePainter makes a single Paint call with all collected spans

Jump to

Keyboard shortcuts

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