Reference Codebot.Render.Controls.pas
Part of the Codebot Render Controls package
The Codebot.Render.Controls unit defines TGraphicsBox, which is a windowed LCL control for hosting OpenGL graphics. When the control is first shown, it creates an SDL window that fills it, and SDL creates the OpenGL context for that window. A render thread then calls OnRenderStart, OnRender, and OnRenderStop with the context made current, and a step thread can call OnStep at a fixed rate.
Because the SDL window covers the control, SDL reads the keyboard and mouse input over it. Before each frame, the graphics box passes those events on as its own LCL key and mouse events, and through OnInput. TGraphicsBoxOptions chooses the depth bits, stencil bits, and multisampling of the OpenGL context.
Items 56 items
| Name | Kind | Line |
|---|---|---|
| TGraphicsBox | class | 122 |
| BeginFrame | procedure | 175 |
| Create | constructor | 171 |
| Destroy | destructor | 172 |
| DestroyWnd | procedure | 164 |
| EndFrame | procedure | 177 |
| EraseBackground | procedure | 173 |
| Flip | procedure | 180 |
| Paint | procedure | 167 |
| PaintWindow | procedure | 166 |
| Resize | procedure | 165 |
| StartStepping | procedure | 185 |
| StopStepping | procedure | 187 |
| WSRegisterClass | procedure | 163 |
| Align | property | 214 |
| Anchors | property | 215 |
| BorderSpacing | property | 216 |
| Canvas | property | 192 |
| Constraints | property | 217 |
| Context | property | 195 |
| ControlCanvas | property | 169 |
| Enabled | property | 218 |
| ErrorMessage | property | 209 |
| Failed | property | 206 |
| OnClick | property | 221 |
| OnDblClick | property | 222 |
| OnFailed | property | 237 |
| OnInput | property | 212 |
| OnKeyDown | property | 223 |
| OnKeyUp | property | 224 |
| OnMouseDown | property | 226 |
| OnMouseEnter | property | 227 |
| OnMouseLeave | property | 228 |
| OnMouseMove | property | 229 |
| OnMouseUp | property | 230 |
| OnMouseWheel | property | 231 |
| OnRender | property | 247 |
| OnRenderStart | property | 240 |
| OnRenderStop | property | 243 |
| OnResize | property | 232 |
| OnUTF8KeyPress | property | 225 |
| Options | property | 234 |
| Rendering | property | 199 |
| Stepping | property | 201 |
| TabStop | property | 219 |
| Visible | property | 220 |
| TGraphicsBoxOptions | class | 28 |
| Assign | procedure | 39 |
| Create | constructor | 38 |
| DepthBits | property | 42 |
| MultiSamples | property | 50 |
| MultiSampling | property | 47 |
| StencilBits | property | 45 |
| TGraphicsInputEvent | procedural | 66 |
| TGraphicsRenderEvent | procedural | 56 |
| TGraphicsStepEvent | procedural | 61 |