#include <msp/graphics/image.h>
#include <msp/strings/lexicalcast.h>
-#include "gl.h"
#include "datatype.h"
namespace Msp {
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); }
void require_pixelformat(PixelFormat);
-GLenum get_gl_components(PixelComponents);
-GLenum get_gl_pixelformat(PixelFormat);
+unsigned get_gl_components(PixelComponents);
+unsigned get_gl_pixelformat(PixelFormat);
} // namespace GL
} // namespace Msp