]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pixelformat.h
Add an srgb flag to pixelformat_from_image
[libs/gl.git] / source / core / pixelformat.h
index 5a5302cd648fbe0a47f3d44e1450d2187b7a1a72..75651a8f872edfb93c6ab4849b54455f5867063f 100644 (file)
@@ -54,6 +54,7 @@ inadvisable for programs to rely on it.
 */
 enum PixelFormat
 {
+       NO_PIXELFORMAT = 0,
        R8 = 0x4100|RED,
        R16F = 0x3200|RED,
        R32F = 0x3400|RED,
@@ -85,7 +86,7 @@ void operator>>(const LexicalConverter &, PixelComponents &);
 void operator>>(const LexicalConverter &, PixelFormat &);
 
 PixelComponents components_from_graphics(Graphics::PixelFormat);
-PixelFormat pixelformat_from_image(const Graphics::Image &);
+PixelFormat pixelformat_from_image(const Graphics::Image &, bool = false);
 
 PixelFormat make_pixelformat(PixelComponents, DataType, bool = false);
 inline PixelComponents get_components(PixelFormat f) { return static_cast<PixelComponents>(f&0xFF); }