Documentation ¶
Rendered for darwin/amd64
Index ¶
- type Graphics
- func (g *Graphics) Begin()
- func (g *Graphics) DrawTriangles(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) Initialize() error
- 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) (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) SetFullscreen(fullscreen bool)
- 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
- type Shader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graphics ¶
type Graphics struct {
// contains filtered or unexported fields
}
func (*Graphics) DrawTriangles ¶ added in v2.2.0
func (g *Graphics) DrawTriangles(dstID driver.ImageID, srcIDs [graphics.ShaderImageNum]driver.ImageID, offsets [graphics.ShaderImageNum - 1][2]float32, shaderID driver.ShaderID, indexLen int, indexOffset int, mode driver.CompositeMode, colorM driver.ColorM, filter driver.Filter, address driver.Address, dstRegion, srcRegion driver.Region, uniforms []interface{}, evenOdd bool) error
func (*Graphics) FramebufferYDirection ¶
func (g *Graphics) FramebufferYDirection() driver.YDirection
func (*Graphics) HasHighPrecisionFloat ¶
func (*Graphics) Initialize ¶ added in v2.2.0
func (*Graphics) MaxImageSize ¶
func (*Graphics) NeedsClearingScreen ¶ added in v2.2.0
func (*Graphics) NeedsRestoring ¶
func (*Graphics) NewScreenFramebufferImage ¶
func (*Graphics) SetFullscreen ¶ added in v2.2.0
func (*Graphics) SetTransparent ¶
func (*Graphics) SetVertices ¶
func (*Graphics) SetVsyncEnabled ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) IsInvalidated ¶
func (*Image) ReplacePixels ¶
func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs)
type Shader ¶
type Shader struct {
// contains filtered or unexported fields
}
func (*Shader) RenderPipelineState ¶
func (s *Shader) RenderPipelineState(device mtl.Device, compositeMode driver.CompositeMode, stencilMode stencilMode) (mtl.RenderPipelineState, error)
Directories ¶
Path | Synopsis |
---|---|
Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore). |
Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
|
Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal). |
Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit). |
Click to show internal directories.
Click to hide internal directories.