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

Method renderContext

core/scene.go:206–215  ·  view source on GitHub ↗

renderContext returns the current render context. This will be nil prior to actual rendering.

()

Source from the content-addressed store, hash-verified

204// renderContext returns the current render context.
205// This will be nil prior to actual rendering.
206func (sc *Scene) renderContext() *renderContext {
207 if sc.Stage == nil {
208 return nil
209 }
210 sm := sc.Stage.Mains
211 if sm == nil {
212 return nil
213 }
214 return sm.renderContext
215}
216
217// RenderWindow returns the current render window for this scene.
218// In general it is best to go through [renderContext] instead of the window.

Callers 7

doUpdateMethod · 0.95
AsyncLockMethod · 0.45
AsyncUnlockMethod · 0.45
NeedsRebuildMethod · 0.45
setUnitContextFunction · 0.45
handleLongMethod · 0.45
InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected