| 1 | # Primitives in Viewport |
| 2 | |
| 3 | Example of setting up 3D world from simple primitives: |
| 4 | |
| 5 | - TCastleBox |
| 6 | - TCastlePlane |
| 7 | - TCastleSphere |
| 8 | - TCastleCone |
| 9 | - TCastleCylinder |
| 10 | - TCastleText |
| 11 | |
| 12 | See https://castle-engine.io/viewport_and_scenes . |
| 13 | |
| 14 | Using [Castle Game Engine](https://castle-engine.io/). |
| 15 | |
| 16 | ## Building |
| 17 | |
| 18 | Compile by: |
| 19 | |
| 20 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 21 | |
| 22 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 23 | |
| 24 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `transform_primitives_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 25 | |
| 26 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `transform_primitives_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |