#include <msp/graphics/image.h>
#include <msp/strings/lexicalcast.h>
-#include "gl.h"
#include "datatype.h"
namespace Msp {
namespace GL {
/**
-Identifies the components of a pixel, without type information. The values
-are bitfields laid as follows:
+Identifies the components of a pixel, without type information.
+
+The values are bitfields laid as follows:
_grs dccc
│││ │ └╴Number of components
└───────╴Grayscale flag
This information is presented for internal documentation purposes only; it is
-inadvisable for programs to rely on it.
+inadvisable for applications to rely on it.
*/
enum PixelComponents
{
};
/**
-Identifies a pixel format, with components and type. The values are bitfields
-laid as follows:
+Identifies a pixel format, with components and type.
+
+The values are bitfields laid as follows:
tnfg ssss cccc cccc
││││ │ └╴Components (see PixelComponents)
└──────────────────╴sRGB flag
This information is presented for internal documentation purposes only; it is
-inadvisable for programs to rely on it.
+inadvisable for applications to rely on it.
*/
enum PixelFormat
{
void require_pixelformat(PixelFormat);
-GLenum get_gl_components(PixelComponents);
-GLenum get_gl_pixelformat(PixelFormat);
-
} // namespace GL
} // namespace Msp
+#include "pixelformat_backend.h"
+
#endif