Versions in this module Expand all Collapse all v1 v1.0.0 Feb 21, 2025 Changes in this version + func NewGraphics() (graphicsdriver.Graphics, error) — darwin/amd64, linux/amd64, windows/amd64 + func NewGraphics(canvas js.Value, colorSpace graphicsdriver.ColorSpace) (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) MaxImageSize() int + func (g *Graphics) NeedsClearingScreen() 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) SetGLFWWindow(window *glfw.Window) + func (g *Graphics) SetTransparent(transparent bool) + func (g *Graphics) SetVertices(vertices []float32, indices []uint32) error + func (g *Graphics) SetVsyncEnabled(enabled bool) + type Image struct + func (i *Image) Dispose() + func (i *Image) ID() graphicsdriver.ImageID + func (i *Image) ReadPixels(args []graphicsdriver.PixelsArgs) error + func (i *Image) WritePixels(args []graphicsdriver.PixelsArgs) error + type Shader struct + func (s *Shader) Dispose() + func (s *Shader) ID() graphicsdriver.ShaderID