buffered

package
v1.12.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 9 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) CopyPixels

func (i *Image) CopyPixels(img *Image, x, y, width, height int) error

func (*Image) DrawImage added in v1.11.0

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, shader *Shader, uniforms []interface{})

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) Pixels added in v1.12.0

func (img *Image) Pixels(x, y, width, height int) (pix []byte, err error)

func (*Image) ReplacePixels

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

type Shader added in v1.12.0

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

func NewShader added in v1.12.0

func NewShader(program *shaderir.Program) *Shader

func (*Shader) MarkDisposed added in v1.12.0

func (s *Shader) MarkDisposed()

Jump to

Keyboard shortcuts

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