[fpc-pascal] Loading PNG files as OpenGL textures

Anthony Walter sysrpl at gmail.com
Mon Oct 12 05:57:07 CEST 2015

I tend to use OS core elements or well known open source libraries for a
few reasons.

1) less code compiled and small programs
2) superior performance
3) more features

Example: When loading hundreds of textures you bet the Apple Quartz
graphics libs are faster and more reliable. Same goes to WIC on Windows and
Cario on linux.

Example: When processing XML, the power of the MSXML parser is going to be
both lighter and faster than any other implementation on Windows. It's also
includes the ability to do stylesheet transforms.

Example: When rendering video frames to textures you bet I am going to use
ffmpeg libs rather than some native implementation.

This isn't meant to dissuade people from writing native implementations in
Pascal. I wrote and maintain a game engine, but even so it's just a
friendly interface to SDL2, OpenGL, SSL, XML, FFMPEG, and System graphics
libs. I have no problem using that stuff when I write Pascal applications,
and that's where I think Pascal excels, which is making friendly OO
encapsulation wrappers around stuff using PME (objects with properties,
methods, and events).

http://www.baregame.org/#bare_game (SDL wrappers)
(Quartz,Cairo,Direct2D,GdiPlus wrappers)
http://www.getlazarus.org/interfaces/xml/ (MSXML,libXML2 wrappers)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20151011/2f060cbe/attachment.html>

More information about the fpc-pascal mailing list