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

Method SetFrameImageName

vgpu/vdraw/draw.go:125–128  ·  view source on GitHub ↗

SetFrameImageName sets given Framebuffer image as a drawing source at name, used in subsequent Draw methods. Must have already been configured to fit!

(name string, fb *vgpu.Framebuffer)

Source from the content-addressed store, hash-verified

123// SetFrameImageName sets given Framebuffer image as a drawing source at name,
124// used in subsequent Draw methods. Must have already been configured to fit!
125func (dw *Drawer) SetFrameImageName(name string, fb *vgpu.Framebuffer) {
126 idx := dw.ImageIndexByName(name)
127 dw.SetFrameImage(idx, fb)
128}
129
130// SyncImages must be called after images have been updated, to sync
131// memory up to the GPU.

Callers

nothing calls this directly

Calls 2

ImageIndexByNameMethod · 0.95
SetFrameImageMethod · 0.95

Tested by

no test coverage detected