Maybe someone will find this interesting.
For the sake of interest/self-development, I ported this project:
https://github.com/michalzalobny/3d-renderer-in-cto Pascal:
https://github.com/Alligator-1/3d-renderer-in-pascalupd:I just decided to test it on Linux, and it doesn't work quite as intended:
1. The path separators need to be adjusted
2. Something needs to be done about image data transfer, because right now it's not working right on Linux (most likely I'm doing something wrong, because I don't really understand how to access raw image pixel data)