Demo of changing views on TCastleControl.
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.
Using Castle Game Engine.
-
Install Lazarus packages following https://castle-engine.io/control_on_form .
-
Open this project in Lazarus and compile + run it from Lazarus, as usual Lazarus application.
-
Or use CGE editor. Just use menu item "Compile" or "Compile And Run".
-
Or use CGE command-line build tool. Run
castle-engine compilein this directory.
-