[fpc-pascal] Loading PNG files as OpenGL textures

Anthony Walter sysrpl at gmail.com
Mon Oct 12 09:26:01 CEST 2015


Michael,

I've written a whole lot of OpenGL demos (demoscene) using both C and
Pascal. I can tell you there is a huge difference between the Delphi image
decompression performance and the performance of the image libs ones
provided by the OS (WIC and Quartz especially). The OS imaging libs are
orders of magnitudes faster than TFPImage, especially when it comes to
loading 100s of textures during the start of a demo or game. Speed aside,
all the OS imaging libs also provide vastly superior image manipulation
including scaling, blending, and all support matrix color operations on
pixels.

I find it ridiculous to reinvent a worse version the wheel in Pascal. Yeah
sure I love Pascal, but mostly for the friendly wrappers it creates out of
everything, which was how Delphi started.

Button.Caption := 'Hello World';

See: http://www.getlazarus.org/language/pme/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151012/4b6b7d40/attachment.html>


More information about the fpc-pascal mailing list