Reference Codebot.Render.Scenes.Controller.pas
Part of the Codebot Render Controls package
Each version implies all earlier versions
The Codebot.Render.Scenes.Controller unit defines TSceneController, which runs a scene inside a TGraphicsBox and acts as the scene host for LCL programs. It hooks the render events of the graphics box, and creates, updates, and frees the scene on the render thread with the OpenGL context made current. OpenScene requests a scene class from the main thread. Keyboard and mouse input comes from the SDL window of the graphics box and is delivered to the scene on the render thread.
The controller provides scenes with the canvas of the graphics box, a default font, and the form holding the graphics box as their window. Scenes use the clipboard and dialogs provided by Codebot.Platform.LCL.
Items 9 items
| Name | Kind | Line |
|---|---|---|
| TSceneController | class | 57 |
| CloseScene | procedure | 92 |
| Create | constructor | 86 |
| Destroy | destructor | 87 |
| GetVSync | function | 82 |
| Notification | procedure | 84 |
| OpenScene | procedure | 90 |
| SetVSync | procedure | 83 |
| Box | property | 94 |