shareable

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 11 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 InitializeGLState

func InitializeGLState() 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 NewVolatileImage

func NewVolatileImage(width, height int) *Image

func (*Image) At

func (i *Image) At(x, y int) color.RGBA

func (*Image) Dispose

func (i *Image) Dispose()

func (*Image) DrawImage

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

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) 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)

func (*Image) Vertex added in v1.8.0

func (i *Image) Vertex(dx, dy, sx, sy float32, cr, cg, cb, ca float32) []float32

Jump to

Keyboard shortcuts

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