graphics

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxImageSize = viewportSize

Variables

This section is empty.

Functions

func CopyImage added in v1.5.0

func CopyImage(origImg image.Image) *image.RGBA

func FlushCommands added in v1.5.0

func FlushCommands() error

func NextPowerOf2Int added in v1.2.0

func NextPowerOf2Int(x int) int

func QuadVertexSizeInBytes added in v1.5.0

func QuadVertexSizeInBytes() int

func Reset added in v1.5.0

func Reset() error

Types

type Image added in v1.5.0

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

func NewImage added in v1.5.0

func NewImage(width, height int, filter opengl.Filter) *Image

func NewImageFromImage added in v1.5.0

func NewImageFromImage(img *image.RGBA, width, height int, filter opengl.Filter) *Image

func NewScreenFramebufferImage added in v1.5.0

func NewScreenFramebufferImage(width, height int) *Image

func (*Image) Dispose added in v1.5.0

func (i *Image) Dispose()

func (*Image) DrawImage added in v1.5.0

func (i *Image) DrawImage(src *Image, vertices []float32, clr *affine.ColorM, mode opengl.CompositeMode)

func (*Image) Fill added in v1.5.0

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

func (*Image) IsInvalidated added in v1.5.0

func (i *Image) IsInvalidated() bool

func (*Image) Pixels added in v1.5.0

func (i *Image) Pixels() ([]uint8, error)

func (*Image) ReplacePixels added in v1.5.0

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

func (*Image) Size added in v1.5.0

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

Jump to

Keyboard shortcuts

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