| 1 | # Managing views (TCastleView) on TCastleControl |
| 2 | |
| 3 | Demo of changing views on `TCastleControl`. |
| 4 | |
| 5 | This example is for Lazarus (LCL) TCastleControl. Though the principle (API how to change views) works everywhere -- with any container, including Delphi VCL and FMX TCastleControl, and including TCastleWindow. |
| 6 | |
| 7 | Using [Castle Game Engine](https://castle-engine.io/). |
| 8 | |
| 9 | ## Building |
| 10 | |
| 11 | 1. Install Lazarus packages following https://castle-engine.io/control_on_form . |
| 12 | |
| 13 | 2. Open this project in Lazarus and compile + run it from Lazarus, as usual Lazarus application. |
| 14 | |
| 15 | - Or use [CGE editor](https://castle-engine.io/manual_editor.php). Just use menu item _"Compile"_ or _"Compile And Run"_. |
| 16 | |
| 17 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |