Debian Codegraph @

examples/lazarus/load_model_and_camera_manually/README.md

raw symbols SCIP
1 # Manually creating CGE Pascal components from code, and using them in TCastleControl
2
3 Demo how to use Pascal code to
4
5 - load 3D scene
6 - set camera
7 - setup navigation
8
9 in an LCL application, and load it to `TCastleControl`. See https://castle-engine.io/control_on_form for more information about using `TCastleControl`.
10
11 Note: we do this by code here, just as a demo. The setup shown here could be also just designed in CGE editor, and loaded easily using `TCastleControl.DesignUrl` -- this is generally better than doing it by code, as it means you can visually see what you're doing at development.
12
13 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.
14
15 Using [Castle Game Engine](https://castle-engine.io/).
16
17 ## Building
18
19 1. Install Lazarus packages following https://castle-engine.io/control_on_form .
20
21 2. Open this project in Lazarus and compile + run it from Lazarus, as usual Lazarus application.
22
23 - Or use [CGE editor](https://castle-engine.io/manual_editor.php). Just use menu item _"Compile"_ or _"Compile And Run"_.
24
25 - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory.