[fpc-pascal] Loading PNG files as OpenGL textures

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Oct 12 12:52:17 CEST 2015


On 2015-10-12 08:26, Anthony Walter wrote:
> 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.

Indeed, FPImage is not very fast... This was also extensively proven and
compared against many other image libraries. The convenience is that you
have NO 3rd party dependencies and your code is 100% cross-platform. So
you need to trade up the options. If you one need to load a handful of
textures, then FPImage will do perfectly and you probably wouldn't
notice any speed penalties.

http://members.upc.nl/h.speksnijder4/software/fpGUI/imagesread.html
http://members.upc.nl/h.speksnijder4/software/fpGUI/pngloader.html


> Speed aside, all the OS imaging libs also provide vastly superior
> image manipulation including scaling, blending, and all support
> matrix color operations on pixels.

Sorry, but it is definitely not that black & white. I know of many
libraries that perform better than native OS libraries, and have better
rendering results too. AGG vs GDI+ is one such example - the AGG library
renders much better anti-aliasing and font rendering than anything
Microsoft has created. See the documentation and research sections on
this website:

  http://antigrain.com/


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list