|
|
|
@ -196,21 +196,25 @@ enum class TextureFormat: GLenum { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_WEBGL |
|
|
|
#ifndef MAGNUM_TARGET_WEBGL |
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES2 |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* sRGB-encoded red component, normalized unsigned byte. |
|
|
|
* sRGB-encoded red component, normalized unsigned byte. |
|
|
|
* @requires_extension Extension @gl_extension{EXT,texture_sRGB_R8} |
|
|
|
* @requires_extension Extension @gl_extension{EXT,texture_sRGB_R8} |
|
|
|
* @requires_es_extension Extension @gl_extension{EXT,texture_sRGB_R8} |
|
|
|
* @requires_es_extension OpenGL ES 3.0 and extension |
|
|
|
|
|
|
|
* @gl_extension{EXT,texture_sRGB_R8} |
|
|
|
* @requires_gles One- and two-component sRGB texture formats are not |
|
|
|
* @requires_gles One- and two-component sRGB texture formats are not |
|
|
|
* available in WebGL, use @ref TextureFormat::SRGB8 or |
|
|
|
* available in WebGL, use @ref TextureFormat::SRGB8 or |
|
|
|
* @ref TextureFormat::SRGB8Alpha8 |
|
|
|
* @ref TextureFormat::SRGB8Alpha8 |
|
|
|
* @m_since{2019,10} |
|
|
|
* @m_since{2019,10} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
SR8 = GL_SR8_EXT, |
|
|
|
SR8 = GL_SR8_EXT, |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if defined(MAGNUM_TARGET_GLES) || defined(DOXYGEN_GENERATING_OUTPUT) |
|
|
|
#if (defined(MAGNUM_TARGET_GLES) && !defined(MAGNUM_TARGET_GLES2)) || defined(DOXYGEN_GENERATING_OUTPUT) |
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* sRGB-encoded red and green component, normalized unsigned byte. |
|
|
|
* sRGB-encoded red and green component, normalized unsigned byte. |
|
|
|
* @requires_es_extension Extension @gl_extension{EXT,texture_sRGB_RG8} |
|
|
|
* @requires_es_extension OpenGL ES 3.0 and extension |
|
|
|
|
|
|
|
* @gl_extension{EXT,texture_sRGB_RG8} |
|
|
|
* @requires_gles One- and two-component sRGB texture formats are not |
|
|
|
* @requires_gles One- and two-component sRGB texture formats are not |
|
|
|
* available in WebGL, use @ref TextureFormat::SRGB8 or |
|
|
|
* available in WebGL, use @ref TextureFormat::SRGB8 or |
|
|
|
* @ref TextureFormat::SRGB8Alpha8 instead. Only |
|
|
|
* @ref TextureFormat::SRGB8Alpha8 instead. Only |
|
|
|
|