| 1 | # Drawing ellipses, rectangles, lines on TCastleImage (using CPU drawing) |
| 2 | |
| 3 | Drawing ellipses, rectangles, lines on TCastleImage (using CPU drawing). |
| 4 | |
| 5 | _It is not advised to use this approach. It may be deprecated in the future._ |
| 6 | It is faster, and more feature-packed, to draw on images using GPU, |
| 7 | following ../draw_images_on_gpu/ approach. |
| 8 | |
| 9 | Using [Castle Game Engine](https://castle-engine.io/). |
| 10 | |
| 11 | ## Building |
| 12 | |
| 13 | Compile by: |
| 14 | |
| 15 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"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. |
| 18 | |
| 19 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `x3d_call_pascal_code_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |