Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2023 Changes in this version + func NewGraphics() (graphicsdriver.Graphics, error) — darwin/amd64, linux/amd64, windows/amd64 + func NewGraphics(canvas js.Value) (graphicsdriver.Graphics, error) — js/wasm + type Graphics struct + func (g *Graphics) Begin() error + func (g *Graphics) DrawTriangles(dstID graphicsdriver.ImageID, ...) error + func (g *Graphics) End(present bool) error + func (g *Graphics) Initialize() error + func (g *Graphics) IsDirectX() bool + func (g *Graphics) IsGL() bool + func (g *Graphics) MaxImageSize() int + func (g *Graphics) NeedsClearingScreen() bool + func (g *Graphics) NeedsRestoring() bool + func (g *Graphics) NewImage(width, height int) (graphicsdriver.Image, error) + func (g *Graphics) NewScreenFramebufferImage(width, height int) (graphicsdriver.Image, error) + func (g *Graphics) NewShader(program *shaderir.Program) (graphicsdriver.Shader, error) + func (g *Graphics) Reset() error + func (g *Graphics) SetGLFWClientAPI() + func (g *Graphics) SetTransparent(transparent bool) + func (g *Graphics) SetVertices(vertices []float32, indices []uint16) error + func (g *Graphics) SetVsyncEnabled(enabled bool) + type Image struct + func (i *Image) Dispose() + func (i *Image) ID() graphicsdriver.ImageID + func (i *Image) IsInvalidated() bool + func (i *Image) ReadPixels(buf []byte, region image.Rectangle) error + func (i *Image) WritePixels(args []*graphicsdriver.WritePixelsArgs) error + type Shader struct + func (s *Shader) Dispose() + func (s *Shader) ID() graphicsdriver.ShaderID