X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpixelformat.h;h=a0e578a6a65443dab00fd69007f669ac1d546730;hb=f1b12c992db974c679d85ae6ec22cd318199d0d5;hp=590ab97eb62cd1e48821e27b9ddda71352149d48;hpb=e37851b98dde5082ee92570354746f2f92e21940;p=libs%2Fgl.git diff --git a/source/pixelformat.h b/source/pixelformat.h index 590ab97e..a0e578a6 100644 --- a/source/pixelformat.h +++ b/source/pixelformat.h @@ -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, @@ -56,6 +51,8 @@ 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);