[fpc-pascal] Loading PNG files as OpenGL textures

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Oct 14 11:56:21 CEST 2015


Hello Michael,

On 2015-10-14 at 08:49, Michael Van Canneyt wrote:
> You could throw in a property to get a direct pointer to a scanline.
> I should maybe add that to the base classes...

+1

fpGUI's Image class has both ImageData and ScanLine[] properties, and
they are very useful for fast access to the actual pixel data. When I
work with FPImage, I always have to go via Pixels[] array which I
assume will have a speed penalty.

ps:
    Thanks for the subclass idea to surface the Data property - that
    will be very useful too.


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