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

Method SetSize

vgpu/renderframe.go:138–145  ·  view source on GitHub ↗

SetSize sets the size for the render frame, doesn't do anything if already that size (returns fale)

(size image.Point)

Source from the content-addressed store, hash-verified

136// SetSize sets the size for the render frame,
137// doesn't do anything if already that size (returns fale)
138func (rf *RenderFrame) SetSize(size image.Point) bool {
139 if rf.Format.Size == size {
140 return false
141 }
142 rf.Format.Size = size
143 rf.ReConfig()
144 return true
145}
146
147// ReConfig reconfigures rendering
148func (rf *RenderFrame) ReConfig() {

Callers 1

mainFunction · 0.95

Calls 1

ReConfigMethod · 0.95

Tested by

no test coverage detected