graphics

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushCommands added in v1.5.0

func FlushCommands(context *opengl.Context) error

func NextPowerOf2Int32 added in v1.3.0

func NextPowerOf2Int32(x int32) int32

func Reset added in v1.5.0

func Reset(context *opengl.Context) 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, error)

func NewImageFromImage added in v1.5.0

func NewImageFromImage(img *image.RGBA, filter opengl.Filter) (*Image, error)

func NewScreenFramebufferImage added in v1.5.0

func NewScreenFramebufferImage(width, height int) (*Image, error)

func (*Image) Dispose added in v1.5.0

func (i *Image) Dispose() error

func (*Image) DrawImage added in v1.5.0

func (i *Image) DrawImage(src *Image, vertices []int16, geo, clr Matrix, mode opengl.CompositeMode) error

func (*Image) Fill added in v1.5.0

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

func (*Image) IsInvalidated added in v1.5.0

func (i *Image) IsInvalidated(context *opengl.Context) bool

func (*Image) Pixels added in v1.5.0

func (i *Image) Pixels(context *opengl.Context) ([]uint8, error)

func (*Image) ReplacePixels added in v1.5.0

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

func (*Image) Size added in v1.5.0

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

type Matrix

type Matrix interface {
	Element(i, j int) float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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