]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pixelformat.h
Remove a number of rarely used legacy features
[libs/gl.git] / source / pixelformat.h
index 01f626c43882bc192b00e83051b9c7c723fcf07c..a0e578a6a65443dab00fd69007f669ac1d546730 100644 (file)
@@ -13,13 +13,8 @@ namespace GL {
 
 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,
@@ -54,7 +49,10 @@ PixelFormat pixelformat_from_graphics(Graphics::PixelFormat);
 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);