> Jakub Marian wrote:
> 
> The image format in the memory is clearly specified, as the main use of 
> this unit is to cooperate with OpenGL (for loading images, textures, 
> saving screenshots etc.). See TImage class comments, basically RawPixels 
> is simply a pointer to an array of Width * Height pixel values, and each 
> descendant of TImage specifies the exact layout of "pixel" --- e.g. for 
> TRGBImage a pixel is just 3 bytes, for red/green/blue.

Is the latter a hard requirement of OpenGL? In the fpimage rework, I had
hoped to skip 24-bit color and use 32-bit for that.

Also, does OpenGL support bottom up (lines other way around in memory)
layouts, or only top down?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to