MCPcopy Create free account
hub / github.com/cogentcore/core / SetGoImage

Method SetGoImage

system/drawer.go:55–55  ·  view source on GitHub ↗

SetGoImage sets given Go image as a drawing source to given image index, and layer, used in subsequent Draw methods. A standard Go image is rendered upright on a standard surface. Set flipY to true to flip.

(idx, layer int, img image.Image, flipY bool)

Source from the content-addressed store, hash-verified

53 // A standard Go image is rendered upright on a standard surface.
54 // Set flipY to true to flip.
55 SetGoImage(idx, layer int, img image.Image, flipY bool)
56
57 // ConfigImageDefaultFormat configures the draw image at the given index
58 // to fit the default image format specified by the given width, height,

Callers 9

SetGoImageMethod · 0.65
SetGoImageMethod · 0.65
AllocTexturesMethod · 0.65
UpdateTextureIndexMethod · 0.65
SetGoImageMethod · 0.65
mainFunction · 0.65
configSpritesMethod · 0.65
DirectRenderImageMethod · 0.65
DirectRenderImageMethod · 0.65

Implementers 1

Drawervgpu/vdraw/vdraw.go

Calls

no outgoing calls

Tested by

no test coverage detected