RenderWindow returns the current render window for this scene. In general it is best to go through [renderContext] instead of the window. This will be nil prior to actual rendering.
()
| 218 | // In general it is best to go through [renderContext] instead of the window. |
| 219 | // This will be nil prior to actual rendering. |
| 220 | func (sc *Scene) RenderWindow() *renderWindow { |
| 221 | if sc.Stage == nil { |
| 222 | return nil |
| 223 | } |
| 224 | sm := sc.Stage.Mains |
| 225 | if sm == nil { |
| 226 | return nil |
| 227 | } |
| 228 | return sm.renderWindow |
| 229 | } |
| 230 | |
| 231 | // fitInWindow fits Scene geometry (pos, size) into given window geom. |
| 232 | // Calls resize for the new size. |
no outgoing calls