}
}
-PixelFormat pixelformat_from_image(const Graphics::Image &image)
+PixelFormat pixelformat_from_image(const Graphics::Image &image, bool srgb)
{
PixelComponents comp = components_from_graphics(image.get_format());
- return make_pixelformat(comp, UNSIGNED_BYTE);
+ return make_pixelformat(comp, UNSIGNED_BYTE, srgb);
}
PixelFormat make_pixelformat(PixelComponents comp, DataType type, bool srgb)
}
}
-GLenum get_gl_components(PixelComponents comp)
+unsigned get_gl_components(PixelComponents comp)
{
switch(comp)
{
}
}
-GLenum get_gl_pixelformat(PixelFormat pf)
+unsigned get_gl_pixelformat(PixelFormat pf)
{
switch(pf)
{