Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + func FlushCommands() error + func MaxImageSize() int + func NeedsRestoring() bool + func ResetGraphicsDriverState() error + func SetGraphicsDriver(driver driver.Graphics) + func SetMainThread(thread Thread) + type Image struct + func NewImage(width, height int) *Image + func NewScreenFramebufferImage(width, height int) *Image + func (i *Image) Dispose() + func (i *Image) DrawTriangles(srcs [graphics.ShaderImageNum]*Image, ...) + func (i *Image) Dump(path string, blackbg bool) error + func (i *Image) InternalSize() (int, int) + func (i *Image) IsInvalidated() bool + func (i *Image) Pixels() ([]byte, error) + func (i *Image) ReplacePixels(pixels []byte, x, y, width, height int) + type Shader struct + func NewShader(ir *shaderir.Program) *Shader + func (s *Shader) Dispose() + type Thread interface + Call func(f func() error) error