Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

OpenGL 3D Animation Demos For Delphi XE5 Firemonkey On Android And IOS

Delphi XE5 Firemonkey 3D AnimationPaul Toth has two different demos up that are good examples of how to build, animate, and render something using primitives in Delphi XE5 Firemonkey. The first demo was built to use low level OpenGL APIs directly and it actually loads the OpenGL library for each different platform and then does everything manually. It is a good example however of the power of Delphi to get at low level APIs and use them when you need to. The first demo supports Windows, OSX, and Android but not IOS (though support could be added). The first demo is 907 lines of code in it’s main file. You can download this demo here and it also includes binaries for each platform. Here is some sample code from that demo showing the import of the OpenGL libraries:

The second demo that he built does pretty much the same thing except it was built entirely out of TRoundCube primitives and animated with TFrameAnimation using the Delphi XE5 visual editor. There is not a single low level API called that had to be written because Firemonkey took care of it all behind the scenes. The main project file for the second demo is 84 lines of code (or about a 90% reduction of code from the first project). The second demo I am assuming runs on Windows, Android, IOS, and OSX out of the box because it is just Firemonkey. You can download the second demo here.

How much more can you get done in a day when you can write ~90% less code to accomplish the same goal? These two projects are a perfect example of why the component based culture of Delphi Firemonkey is a force multiplier for cross platform development on the desktop and mobile devices.

Fran├žois Piette has a blog post up about the two projects which you can click over and read.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

C++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

TStringList and TFDMemTable Contribute To The Powerhouse That Is Cross Platform Delphi Development In FireMonkey

AndroidC++BuilderDelphiFiremonkeyIDEIOSOSXWindows

Massive Update With Tons Of Fixes For Delphi 10.4 Firemonkey On Android, IOS, MacOS, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply