> On Oct 11, 2015, at 10:45 PM, Graeme Geldenhuys > <mailingli...@geldenhuys.co.uk> wrote: > > 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
But can I then access the pixel data so I can hand it to glTexImage2D and make the texture? I think the FPC RTL classes on http://wiki.freepascal.org/fcl-image would do this also but again it’s not clear how to get the pixel data for glTexImage2D Thanks. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal