enum PixelFormat
{
- COLOR_INDEX = GL_COLOR_INDEX,
STENCIL_INDEX = GL_STENCIL_INDEX,
DEPTH_COMPONENT = GL_DEPTH_COMPONENT,
- RED = GL_RED,
- GREEN = GL_GREEN,
- BLUE = GL_BLUE,
- ALPHA = GL_ALPHA,
RGB = GL_RGB,
RGBA = GL_RGBA,
RGB8 = GL_RGB8,
PixelFormat storage_pixelformat_from_graphics(Graphics::PixelFormat);
PixelFormat get_base_pixelformat(PixelFormat);
+PixelFormat get_srgb_pixelformat(PixelFormat);
unsigned get_component_count(PixelFormat);
+unsigned get_component_size(PixelFormat);
+unsigned get_pixel_size(PixelFormat);
void require_pixelformat(PixelFormat);