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)
| 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! |
| 125 | func (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. |
nothing calls this directly
no test coverage detected