Back to

Package buffered

Latest Go to latest

The latest major version is .

Published: Sep 6, 2020 | License: Apache-2.0 | Module:


func BeginFrame

func BeginFrame() error

func EndFrame

func EndFrame() error

type Image

type Image struct {
	// contains filtered or unexported fields

func NewImage

func NewImage(width, height int, volatile bool) *Image

func NewScreenFramebufferImage

func NewScreenFramebufferImage(width, height int) *Image

func (*Image) At

func (i *Image) At(x, y int) (r, g, b, a byte, err error)

func (*Image) DrawImage

func (i *Image) DrawImage(src *Image, bounds image.Rectangle, a, b, c, d, tx, ty float32, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter)

func (*Image) DrawTriangles

func (i *Image) DrawTriangles(src *Image, vertices []float32, indices []uint16, colorm *affine.ColorM, mode driver.CompositeMode, filter driver.Filter, address driver.Address)

DrawTriangles draws the src image with the given vertices.

Copying vertices and indices is the caller's responsibility.

func (*Image) Dump

func (i *Image) Dump(name string, blackbg bool) error

func (*Image) Fill

func (i *Image) Fill(clr color.RGBA)

func (*Image) MarkDisposed

func (i *Image) MarkDisposed()

func (*Image) ReplacePixels

func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier