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 + type Graphics struct — darwin/amd64 + 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) SetTransparent(transparent bool) + func (g *Graphics) SetUIView(uiview uintptr) + func (g *Graphics) SetVertices(vertices []float32, indices []uint16) error + 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() 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 — darwin/amd64 + func (s *Shader) Dispose() + func (s *Shader) ID() graphicsdriver.ShaderID + func (s *Shader) RenderPipelineState(view *view, blend graphicsdriver.Blend, stencilMode stencilMode, screen bool) (mtl.RenderPipelineState, error)