[fpc-pascal] Loading PNG files as OpenGL textures

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Oct 11 17:45:38 CEST 2015


On 2015-10-11 05:29, Ryan Joseph wrote:
> Does the FPC RTL contain any units for loading PNG files as bitmaps

As Michael mentioned, fpimage and fpreadpng can do this. Here is how I
use it to populate fpGUI's TfpgImage class with image data.

https://github.com/graemeg/fpGUI/blob/develop/src/corelib/fpg_imgfmt_png.pas


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