renderContext returns the current render context. This will be nil prior to actual rendering.
()
| 204 | // renderContext returns the current render context. |
| 205 | // This will be nil prior to actual rendering. |
| 206 | func (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. |
no outgoing calls
no test coverage detected