public class SceneView extends Widget implements AutoClosable
Native OpenGL scene viewport. Primary-button drag orbits; wheel zooms. GPU meshes stay resident between repaints. Call repaint after scene changes. Close the renderer explicitly when permanently removing the view; window teardown also releases native child surfaces. No worker-thread GUI calls. Example: view = SceneView(scene); layout.add(view); view.frameScene()
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | cameracamera as PerspectiveCamera = PerspectiveCamera() |
Camera used for rendering and orbiting. |
| public property | orbitEnabledorbitEnabled as Boolean = true |
Enables drag/wheel orbit controls. |
| public readonly property | renderer | Renderer owned by this widget. |
| public property | scenescene as Scene |
Displayed GUI-independent scene. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SceneView | Creates a viewport. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | closeclose() as Void |
Permanently closes GPU resources. |
| public | frameSceneframeScene() as Void |
Frames all visible nodes; call after loading or replacing the scene. |
| public override | paintpaint(painter as Painter) as Void |
Draws a frame on the GUI thread; hidden views perform no GPU work. |