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

func FlushCommands(context *opengl.Context) error

func NextPowerOf2Int32 added in v1.3.0

func NextPowerOf2Int32(x int32) int32

func Reset

func Reset(context *opengl.Context) error

Types

type Image

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

func NewImage

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

func NewImageFromImage

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

func NewScreenFramebufferImage

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

func (*Image) Dispose

func (i *Image) Dispose() error

func (*Image) DrawImage

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

func (*Image) Fill

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

func (*Image) IsInvalidated

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

func (*Image) Pixels

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

func (*Image) ReplacePixels

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

func (*Image) Size

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