![]() |
![]() |
We have a few treats for Delphi users in this post:
- Base engine units (but not yet rendering!) are now compatible with more Delphi platforms. To opens the door to make our engine compatible with more platforms with Delphi.
This means we have a “groundwork” to add support for more targets with Delphi:
- Android (tested both “Android 64-bit” and “Android 32-bit” now)
- macOS (tested both “macOS 64-bit” and “macOS ARM 64-bit”)
- iOS (tested both “iOS Device 64-bit” and _”iOS Simulator 64-bit”)
- To remind: above platforms are in addition to already-supported platforms with Delphi, which are Windows and Linux. And this is in addition to all platforms (all desktops, Android, iOS, and web, and Nintendo Switch) supported with FPC.
This “groundwork” means that base units compile for the aforementioned platforms. If you try compiling a full game, it will compile until the
ContextCreateBestInstance
compilation with messageDefine how to create OpenGL context for this platform.
. This is OK, this means that basic units compiled OK.We have initial documentation about Delphi + macOS, Android, iOS here.
-
The above “groundwork” already achieves something useful: you can write various 3D and 2D processing tools with the engine on the new platforms. For example, command-line applications, or regular FMX applications that invoke our engine to do some processing (just not using yet our engine for display).
An example is in scene_information_cli_tool in our examples. See the screenshot on the side of this post — built by Delphi, working as a command-line tool on macOS.
-
Castle Model Viewer (source code here on GitHub) compiles now with Delphi (as well as FPC). This improves our ability to test everything, we like to have every part of our engine working with both FPC and Delphi.
-
Thanks to Adrian Gallero, our Delphi design-time packages install our “Tools → Castle Game Engine” menu also in 64-bit Delphi IDE version.
-
Finally, since we’re on topic of Delphi, let’s add that we also fixed compilation of the latest code with C++ Builder. We had accumulated 2 small bugs since the last time we checked it, see this GH issue. All good now. Thank you Zatupitel for reporting!
Start the discussion at Castle Game Engine Forum