softwarebackend

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func (*Image) Delete

func (img *Image) Delete()

func (*Image) Height

func (img *Image) Height() int

func (*Image) Replace

func (img *Image) Replace(src image.Image) error

func (*Image) Size

func (img *Image) Size() (w, h int)

func (*Image) Width

func (img *Image) Width() int

type ImagePattern

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

func (*ImagePattern) Delete

func (ip *ImagePattern) Delete()

func (*ImagePattern) Replace

func (ip *ImagePattern) Replace(data backendbase.ImagePatternData)

type LinearGradient

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

func (*LinearGradient) Delete

func (g *LinearGradient) Delete()

func (*LinearGradient) Replace

func (g *LinearGradient) Replace(data backendbase.Gradient)

type RadialGradient

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

func (*RadialGradient) Delete

func (g *RadialGradient) Delete()

func (*RadialGradient) Replace

func (g *RadialGradient) Replace(data backendbase.Gradient)

type SoftwareBackend

type SoftwareBackend struct {
	Image *image.RGBA

	MSAA int
	// contains filtered or unexported fields
}

func New

func New(w, h int) *SoftwareBackend

func (*SoftwareBackend) AsImage

func (b *SoftwareBackend) AsImage() backendbase.Image

func (*SoftwareBackend) CanUseAsImage

func (b *SoftwareBackend) CanUseAsImage(b2 backendbase.Backend) bool

func (*SoftwareBackend) Clear

func (b *SoftwareBackend) Clear(pts [4]backendbase.Vec)

func (*SoftwareBackend) ClearClip

func (b *SoftwareBackend) ClearClip()

func (*SoftwareBackend) Clip

func (b *SoftwareBackend) Clip(pts []backendbase.Vec)

func (*SoftwareBackend) DrawImage

func (b *SoftwareBackend) DrawImage(dimg backendbase.Image, sx, sy, sw, sh float64, pts [4]backendbase.Vec, alpha float64)

func (*SoftwareBackend) Fill

func (b *SoftwareBackend) Fill(style *backendbase.FillStyle, pts []backendbase.Vec, tf backendbase.Mat, canOverlap bool)

func (*SoftwareBackend) FillImageMask

func (b *SoftwareBackend) FillImageMask(style *backendbase.FillStyle, mask *image.Alpha, pts [4]backendbase.Vec)

func (*SoftwareBackend) GetImageData

func (b *SoftwareBackend) GetImageData(x, y, w, h int) *image.RGBA

func (*SoftwareBackend) LoadImage

func (b *SoftwareBackend) LoadImage(img image.Image) (backendbase.Image, error)

func (*SoftwareBackend) LoadImagePattern

func (*SoftwareBackend) LoadLinearGradient

func (b *SoftwareBackend) LoadLinearGradient(data backendbase.Gradient) backendbase.LinearGradient

func (*SoftwareBackend) LoadRadialGradient

func (b *SoftwareBackend) LoadRadialGradient(data backendbase.Gradient) backendbase.RadialGradient

func (*SoftwareBackend) PutImageData

func (b *SoftwareBackend) PutImageData(img *image.RGBA, x, y int)

func (*SoftwareBackend) SetSize

func (b *SoftwareBackend) SetSize(w, h int)

func (*SoftwareBackend) Size

func (b *SoftwareBackend) Size() (int, int)

Jump to

Keyboard shortcuts

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