X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpixelformat.h;fp=source%2Fpixelformat.h;h=b69ad499c59c6f77ad3ae737e9c257601544996a;hb=49323eea600fb989d4181ccfd437ee12722ae733;hp=8e3e6901e95d0e40c7357b3e2389429dabb14e8d;hpb=0221e39a685c4f3122a0fae032a7888b5ce40579;p=libs%2Fgl.git diff --git a/source/pixelformat.h b/source/pixelformat.h index 8e3e6901..b69ad499 100644 --- a/source/pixelformat.h +++ b/source/pixelformat.h @@ -41,13 +41,16 @@ enum PixelFormat LUMINANCE16F = GL_LUMINANCE16F_ARB, LUMINANCE32F = GL_LUMINANCE32F_ARB, LUMINANCE_ALPHA = GL_LUMINANCE_ALPHA, - LUMINANCE_ALPHA8 = GL_LUMINANCE8_ALPHA8, + LUMINANCE8_ALPHA8 = GL_LUMINANCE8_ALPHA8, LUMINANCE_ALPHA16F = GL_LUMINANCE_ALPHA16F_ARB, LUMINANCE_ALPHA32F = GL_LUMINANCE_ALPHA32F_ARB, SLUMINANCE = GL_SLUMINANCE, SLUMINANCE8 = GL_SLUMINANCE8, SLUMINANCE_ALPHA = GL_SLUMINANCE_ALPHA, - SLUMINANCE8_ALPHA8 = GL_SLUMINANCE8_ALPHA8 + SLUMINANCE8_ALPHA8 = GL_SLUMINANCE8_ALPHA8, + + // Typo, deprecated + LUMINANCE_ALPHA8 = GL_LUMINANCE8_ALPHA8 }; void operator>>(const LexicalConverter &, PixelFormat &); @@ -56,6 +59,7 @@ PixelFormat pixelformat_from_graphics(Graphics::PixelFormat); PixelFormat storage_pixelformat_from_graphics(Graphics::PixelFormat, bool = false); PixelFormat get_base_pixelformat(PixelFormat); +PixelFormat get_sized_pixelformat(PixelFormat); PixelFormat get_srgb_pixelformat(PixelFormat); unsigned get_component_count(PixelFormat); unsigned get_component_size(PixelFormat);