]> 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 2f6038459bb7b345d610a1875cfa9e91a5cce38f..75651a8f872edfb93c6ab4849b54455f5867063f 100644 (file)
@@ -86,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); }