shareable

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxCountForShare = 10

Variables

This section is empty.

Functions

func Error added in v1.8.0

func Error() error

func Images

func Images() []image.Image

func InitializeGraphicsDriverState added in v1.9.0

func InitializeGraphicsDriverState() error

func IsRestoringEnabled

func IsRestoringEnabled() bool

func ResolveStaleImages

func ResolveStaleImages()

func Restore

func Restore() error

Types

type Image

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

func NewImage

func NewImage(width, height int) *Image

func NewScreenFramebufferImage

func NewScreenFramebufferImage(width, height int) *Image

func (*Image) At

func (i *Image) At(x, y int) (byte, byte, byte, byte)

func (*Image) Dispose

func (i *Image) Dispose()

func (*Image) DrawImage

func (i *Image) DrawImage(img *Image, vertices []float32, indices []uint16, colorm *affine.ColorM, mode graphics.CompositeMode, filter graphics.Filter, address graphics.Address)

func (*Image) Fill added in v1.9.0

func (i *Image) Fill(r, g, b, a uint8)

Fill fills the image with a color. This affects not only the (0, 0)-(width, height) region but also the whole framebuffer region.

func (*Image) IsInvalidated

func (i *Image) IsInvalidated() (bool, error)

func (*Image) IsSharedForTesting added in v1.8.0

func (i *Image) IsSharedForTesting() bool

func (*Image) IsVolatile added in v1.8.0

func (i *Image) IsVolatile() bool

func (*Image) MakeVolatile added in v1.9.0

func (i *Image) MakeVolatile()

func (*Image) PutVertex added in v1.9.0

func (i *Image) PutVertex(dest []float32, dx, dy, sx, sy float32, bx0, by0, bx1, by1 float32, cr, cg, cb, ca float32)

func (*Image) QuadVertices added in v1.8.0

func (i *Image) QuadVertices(sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, cr, cg, cb, ca float32) []float32

func (*Image) ReplacePixels

func (i *Image) ReplacePixels(p []byte)

func (*Image) Size

func (i *Image) Size() (width, height int)

Jump to

Keyboard shortcuts

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