buffered

package
v1.11.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginFrame

func BeginFrame() error

func EndFrame

func EndFrame() error

Types

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)

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)

func (*Image) Dump

func (i *Image) Dump(name string) 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)

func (*Image) Set

func (i *Image) Set(x, y int, r, g, b, a byte)

Jump to

Keyboard shortcuts

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