Documentation ¶
Index ¶
Constants ¶
View Source
const ( InvalidImageID = 0 InvalidShaderID = 0 )
Variables ¶
View Source
var GraphicsNotReady = errors.New("graphics not ready")
GraphicsNotReady represents that the graphics driver is not ready for recovering from the context lost.
Functions ¶
This section is empty.
Types ¶
type CompositeMode ¶
type CompositeMode int
const ( CompositeModeUnknown CompositeMode = iota - 1 CompositeModeSourceOver // This value must be 0 (= initial value) CompositeModeClear CompositeModeCopy CompositeModeDestination CompositeModeDestinationOver CompositeModeSourceIn CompositeModeDestinationIn CompositeModeSourceOut CompositeModeDestinationOut CompositeModeSourceAtop CompositeModeDestinationAtop CompositeModeXor CompositeModeLighter CompositeModeMultiply CompositeModeMax = CompositeModeMultiply )
func (CompositeMode) Operations ¶
func (c CompositeMode) Operations() (src Operation, dst Operation)
type Graphics ¶
type Graphics interface { Initialize() error Begin() error End(present bool) error SetTransparent(transparent bool) SetVertices(vertices []float32, indices []uint16) error NewImage(width, height int) (Image, error) NewScreenFramebufferImage(width, height int) (Image, error) SetVsyncEnabled(enabled bool) SetFullscreen(fullscreen bool) FramebufferYDirection() YDirection NeedsRestoring() bool NeedsClearingScreen() bool IsGL() bool IsDirectX() bool MaxImageSize() int NewShader(program *shaderir.Program) (Shader, error) // DrawTriangles draws an image onto another image with the given parameters. DrawTriangles(dst ImageID, srcs [graphics.ShaderImageCount]ImageID, offsets [graphics.ShaderImageCount - 1][2]float32, shader ShaderID, indexLen int, indexOffset int, mode CompositeMode, colorM ColorM, filter Filter, address Address, dstRegion, srcRegion Region, uniforms [][]float32, evenOdd bool) error }
type ReplacePixelsArgs ¶
Directories ¶
Path | Synopsis |
---|---|
ca
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). |
mtl
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). |
ns
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). |
gl
Package gl implements Go bindings to OpenGL.
|
Package gl implements Go bindings to OpenGL. |
gles
Package gles implements Go bindings to OpenGL ES.
|
Package gles implements Go bindings to OpenGL ES. |
Click to show internal directories.
Click to hide internal directories.