LaurentGomila/SFML — Issue #166: Investigate support for multiple texture formats
Author: LaurentGomila
Created: 2012-02-08 13:13:41+00:00
State: open
Labels: feature, graphics

This feature could be interesting in many use cases:

* use the same format as the pixel data source to avoid slow conversions (for example, YUV for video streaming)
* use floating point formats to write advanced shader effects (HDRL)
* use optimized formats to save video memory and performances (8-bit luminance, compressed RGBA)

However, many of these other formats are not well supported by old hardware.

This feature may be hard to integrate to the API, since it requires to use typeless data that can represent any pixel type (void*), leaving to the user to interpret it correctly -- that's how it's done in SDL, and I find it ugly.