ebiten: github.com/hajimehoshi/ebiten/internal/graphicscommand Index | Files

package graphicscommand

import "github.com/hajimehoshi/ebiten/internal/graphicscommand"

Package graphicscommand represents a low layer for graphics using OpenGL.

Index

Package Files

command.go debug_notebitendebug.go doc.go image.go

func Error Uses

func Error() error

Error returns an OpenGL error for the last command.

func FlushCommands Uses

func FlushCommands()

FlushCommands flushes the command queue.

func NeedsRestoring Uses

func NeedsRestoring() bool

func ResetGraphicsDriverState Uses

func ResetGraphicsDriverState() error

ResetGraphicsDriverState resets or initializes the current graphics driver state.

func SetGraphicsDriver Uses

func SetGraphicsDriver(driver driver.Graphics)

type Image Uses

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

Image represents an image that is implemented with OpenGL.

func NewImage Uses

func NewImage(width, height int) *Image

NewImage returns a new image.

Note that the image is not initialized yet.

func NewScreenFramebufferImage Uses

func NewScreenFramebufferImage(width, height int) *Image

func (*Image) CopyPixels Uses

func (i *Image) CopyPixels(src *Image)

CopyPixels is basically same as Pixels and ReplacePixels, but reading pixels from GPU is done lazily.

func (*Image) Dispose Uses

func (i *Image) Dispose()

func (*Image) DrawTriangles Uses

func (i *Image) DrawTriangles(src *Image, vertices []float32, indices []uint16, clr *affine.ColorM, mode graphics.CompositeMode, filter graphics.Filter, address graphics.Address)

func (*Image) IsInvalidated Uses

func (i *Image) IsInvalidated() bool

func (*Image) Pixels Uses

func (i *Image) Pixels() []byte

Pixels returns the image's pixels. Pixels might return nil when OpenGL error happens.

func (*Image) ReplacePixels Uses

func (i *Image) ReplacePixels(p []byte, x, y, width, height int)

func (*Image) Size Uses

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

Package graphicscommand imports 4 packages (graph) and is imported by 5 packages. Updated 2019-06-02. Refresh now. Tools for package owners.