#include <msp/gl/extensions/ext_texture_srgb.h>
#include <msp/gl/extensions/oes_required_internalformat.h>
#include <msp/gl/extensions/oes_texture_stencil8.h>
-#include <msp/io/print.h>
#include <msp/strings/format.h>
#include "pixelformat.h"
}
}
-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)
{