Versions in this module Expand all Collapse all v2 v2.0.7 Mar 14, 2021 Changes in this version + type Graphics struct — darwin/amd64 + func Get() *Graphics + func (g *Graphics) Begin() + func (g *Graphics) Draw(dstID, srcID driver.ImageID, indexLen int, indexOffset int, ...) error + func (g *Graphics) DrawShader(dstID driver.ImageID, srcIDs [graphics.ShaderImageNum]driver.ImageID, ...) error + func (g *Graphics) End() + func (g *Graphics) FramebufferYDirection() driver.YDirection + func (g *Graphics) HasHighPrecisionFloat() bool + func (g *Graphics) InvalidImageID() driver.ImageID + func (g *Graphics) IsGL() bool + func (g *Graphics) MaxImageSize() int + func (g *Graphics) NeedsRestoring() bool + func (g *Graphics) NewImage(width, height int) (driver.Image, error) + func (g *Graphics) NewScreenFramebufferImage(width, height int) (driver.Image, error) + func (g *Graphics) NewShader(program *shaderir.Program) (driver.Shader, error) + func (g *Graphics) Reset() error + func (g *Graphics) SetTransparent(transparent bool) + func (g *Graphics) SetUIView(uiview uintptr) + func (g *Graphics) SetVertices(vertices []float32, indices []uint16) + func (g *Graphics) SetVsyncEnabled(enabled bool) + func (g *Graphics) SetWindow(window uintptr) + type Image struct — darwin/amd64 + func (i *Image) Dispose() + func (i *Image) ID() driver.ImageID + func (i *Image) IsInvalidated() bool + func (i *Image) Pixels() ([]byte, error) + func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs) + type Shader struct — darwin/amd64 + func (s *Shader) Dispose() + func (s *Shader) ID() driver.ShaderID + func (s *Shader) RenderPipelineState(device mtl.Device, c driver.CompositeMode) (mtl.RenderPipelineState, error)