Browse Source

Updated and improved ColorFormat, ColorType and TextureFormat enum docs.

Finishing promises made in #31.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
a9fe635867
  1. 85
      src/ColorFormat.h
  2. 58
      src/TextureFormat.h

85
src/ColorFormat.h

@ -25,7 +25,7 @@
*/ */
/** @file /** @file
* @brief Enum Magnum::ColorFormat, Magnum::ColorType * @brief Enum @ref Magnum::ColorFormat, @ref Magnum::ColorType
*/ */
#include "Magnum.h" #include "Magnum.h"
@ -38,9 +38,18 @@ namespace Magnum {
@brief Format of image data @brief Format of image data
Note that some formats can be used only for framebuffer reading (using Note that some formats can be used only for framebuffer reading (using
AbstractFramebuffer::read()) and some only for texture data (using Texture::setImage() @ref AbstractFramebuffer::read()) and some only for texture data (using
and others). @ref Texture::setImage() and others), the limitations are mentioned in
@see Image, ImageReference, BufferImage, Trade::ImageData documentation of each particular value.
In most cases you may want to use @ref ColorFormat::Red (for grayscale images),
@ref ColorFormat::RGB or @ref ColorFormat::RGBA along with
@ref ColorType::UnsignedByte, the matching texture format is then
@ref TextureFormat::R8, @ref TextureFormat::RGB8 or @ref TextureFormat::RGBA8.
See documentation of these values for possible limitations when using OpenGL ES
2.0 or WebGL.
@see @ref Image, @ref ImageReference, @ref BufferImage, @ref Trade::ImageData
*/ */
enum class ColorFormat: GLenum { enum class ColorFormat: GLenum {
/** /**
@ -57,14 +66,14 @@ enum class ColorFormat: GLenum {
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
/** /**
* Floating-point green channel. * Floating-point green channel.
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::Red" is * @requires_gl Only @ref Magnum::ColorFormat::Red "ColorFormat::Red" is
* available in OpenGL ES. * available in OpenGL ES.
*/ */
Green = GL_GREEN, Green = GL_GREEN,
/** /**
* Floating-point blue channel. * Floating-point blue channel.
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::Red" is * @requires_gl Only @ref Magnum::ColorFormat::Red "ColorFormat::Red" is
* available in OpenGL ES. * available in OpenGL ES.
*/ */
Blue = GL_BLUE, Blue = GL_BLUE,
@ -75,9 +84,9 @@ enum class ColorFormat: GLenum {
* Floating-point luminance channel. The value is used for all RGB * Floating-point luminance channel. The value is used for all RGB
* channels. * channels.
* @deprecated_gl Included for compatibility reasons only, use * @deprecated_gl Included for compatibility reasons only, use
* @ref Magnum::ColorFormat "ColorFormat::Red" instead. * @ref Magnum::ColorFormat::Red "ColorFormat::Red" instead.
* @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use * @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use
* @ref Magnum::ColorFormat "ColorFormat::Red" instead. * @ref Magnum::ColorFormat::Red "ColorFormat::Red" instead.
*/ */
Luminance = GL_LUMINANCE, Luminance = GL_LUMINANCE,
#endif #endif
@ -99,9 +108,9 @@ enum class ColorFormat: GLenum {
* Floating-point luminance and alpha channel. First value is used for all * Floating-point luminance and alpha channel. First value is used for all
* RGB channels, second value is used for alpha channel. * RGB channels, second value is used for alpha channel.
* @deprecated_gl Included for compatibility reasons only, use * @deprecated_gl Included for compatibility reasons only, use
* @ref Magnum::ColorFormat "ColorFormat::RG" instead. * @ref Magnum::ColorFormat::RG "ColorFormat::RG" instead.
* @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use * @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use
* @ref Magnum::ColorFormat "ColorFormat::RG" instead. * @ref Magnum::ColorFormat::RG "ColorFormat::RG" instead.
*/ */
LuminanceAlpha = GL_LUMINANCE_ALPHA, LuminanceAlpha = GL_LUMINANCE_ALPHA,
#endif #endif
@ -148,7 +157,7 @@ enum class ColorFormat: GLenum {
/** /**
* Integer green channel. * Integer green channel.
* @requires_gl30 %Extension @extension{EXT,texture_integer} * @requires_gl30 %Extension @extension{EXT,texture_integer}
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::RedInteger" * @requires_gl Only @ref Magnum::ColorFormat::RedInteger "ColorFormat::RedInteger"
* is available in OpenGL ES 3.0, only floating-point image data are * is available in OpenGL ES 3.0, only floating-point image data are
* available in OpenGL ES 2.0. * available in OpenGL ES 2.0.
*/ */
@ -157,8 +166,8 @@ enum class ColorFormat: GLenum {
/** /**
* Integer blue channel. * Integer blue channel.
* @requires_gl30 %Extension @extension{EXT,texture_integer} * @requires_gl30 %Extension @extension{EXT,texture_integer}
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::RedInteger" is * @requires_gl Only @ref Magnum::ColorFormat::RedInteger "ColorFormat::RedInteger"
* available in OpenGL ES 3.0, only floating-point image data are * is available in OpenGL ES 3.0, only floating-point image data are
* available in OpenGL ES 2.0. * available in OpenGL ES 2.0.
*/ */
BlueInteger = GL_BLUE_INTEGER, BlueInteger = GL_BLUE_INTEGER,
@ -194,8 +203,8 @@ enum class ColorFormat: GLenum {
/** /**
* Integer BGR. * Integer BGR.
* @requires_gl30 %Extension @extension{EXT,texture_integer} * @requires_gl30 %Extension @extension{EXT,texture_integer}
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::RGBInteger" is * @requires_gl Only @ref Magnum::ColorFormat::RGBInteger "ColorFormat::RGBInteger"
* available in OpenGL ES 3.0, only floating-point image data are * is available in OpenGL ES 3.0, only floating-point image data are
* available in OpenGL ES 2.0. * available in OpenGL ES 2.0.
*/ */
BGRInteger = GL_BGR_INTEGER, BGRInteger = GL_BGR_INTEGER,
@ -203,8 +212,8 @@ enum class ColorFormat: GLenum {
/** /**
* Integer BGRA. * Integer BGRA.
* @requires_gl30 %Extension @extension{EXT,texture_integer} * @requires_gl30 %Extension @extension{EXT,texture_integer}
* @requires_gl Only @ref Magnum::ColorFormat "ColorFormat::RGBAInteger" is * @requires_gl Only @ref Magnum::ColorFormat::RGBAInteger "ColorFormat::RGBAInteger"
* available in OpenGL ES 3.0, only floating-point image data are * is available in OpenGL ES 3.0, only floating-point image data are
* available in OpenGL ES 2.0. * available in OpenGL ES 2.0.
*/ */
BGRAInteger = GL_BGRA_INTEGER, BGRAInteger = GL_BGRA_INTEGER,
@ -251,9 +260,18 @@ enum class ColorFormat: GLenum {
@brief Type of image data @brief Type of image data
Note that some formats can be used only for framebuffer reading (using Note that some formats can be used only for framebuffer reading (using
AbstractFramebuffer::read()) and some only for texture data (using Texture::setImage() @ref AbstractFramebuffer::read()) and some only for texture data (using
and others). @ref Texture::setImage() and others), the limitations are mentioned in
@see Image, ImageReference, BufferImage, Trade::ImageData documentation of each particular value.
In most cases you may want to use @ref ColorType::UnsignedByte along with
@ref ColorFormat::Red (for grayscale images), @ref ColorFormat::RGB or
@ref ColorFormat::RGBA, the matching texture format is then
@ref TextureFormat::R8, @ref TextureFormat::RGB8 or @ref TextureFormat::RGBA8.
See documentation of these values for possible limitations when using OpenGL ES
2.0 or WebGL.
@see @ref Image, @ref ImageReference, @ref BufferImage, @ref Trade::ImageData
*/ */
enum class ColorType: GLenum { enum class ColorType: GLenum {
/** Each component unsigned byte. */ /** Each component unsigned byte. */
@ -263,8 +281,9 @@ enum class ColorType: GLenum {
/** /**
* Each component signed byte. * Each component signed byte.
* @requires_gl Can't be used for framebuffer reading in OpenGL ES. * @requires_gl Can't be used for framebuffer reading in OpenGL ES.
* @requires_gles30 For texture data only, only @ref Magnum::ColorType "ColorType::UnsignedByte" * @requires_gles30 For texture data only, only
* is available in OpenGL ES 2.0. * @ref Magnum::ColorType::UnsignedByte "ColorType::UnsignedByte" is
* available in OpenGL ES 2.0.
*/ */
Byte = GL_BYTE, Byte = GL_BYTE,
#endif #endif
@ -281,8 +300,9 @@ enum class ColorType: GLenum {
/** /**
* Each component signed short. * Each component signed short.
* @requires_gl Can't be used for framebuffer reading in OpenGL ES. * @requires_gl Can't be used for framebuffer reading in OpenGL ES.
* @requires_gles30 For texture data only, only @ref Magnum::ColorType "ColorType::UnsignedShort" * @requires_gles30 For texture data only, only
* is available in OpenGL ES 2.0. * @ref Magnum::ColorType::UnsignedShort "ColorType::UnsignedShort" is
* available in OpenGL ES 2.0.
*/ */
Short = GL_SHORT, Short = GL_SHORT,
#endif #endif
@ -298,7 +318,7 @@ enum class ColorType: GLenum {
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
/** /**
* Each component signed int. * Each component signed int.
* @requires_gles30 Only @ref Magnum::ColorType "ColorType::UnsignedInt" * @requires_gles30 Only @ref Magnum::ColorType::UnsignedInt "ColorType::UnsignedInt"
* is available in OpenGL ES 2.0. * is available in OpenGL ES 2.0.
*/ */
Int = GL_INT, Int = GL_INT,
@ -345,7 +365,7 @@ enum class ColorType: GLenum {
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
/** /**
* BGR, unsigned short, red and blue 5bit, green 6bit. * BGR, unsigned short, red and blue 5bit, green 6bit.
* @requires_gl Only @ref Magnum::ColorType "ColorType::RGB565" is * @requires_gl Only @ref Magnum::ColorType::RGB565 "ColorType::RGB565" is
* available in OpenGL ES. * available in OpenGL ES.
*/ */
UnsignedShort565Rev = GL_UNSIGNED_SHORT_5_6_5_REV, UnsignedShort565Rev = GL_UNSIGNED_SHORT_5_6_5_REV,
@ -388,22 +408,22 @@ enum class ColorType: GLenum {
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
/** /**
* RGBA, unsigned int, each component 8bit. * RGBA, unsigned int, each component 8bit.
* @requires_gl Use @ref Magnum::ColorType "ColorType::UnsignedByte" in * @requires_gl Use @ref Magnum::ColorType::UnsignedByte "ColorType::UnsignedByte"
* OpenGL ES instead. * in OpenGL ES instead.
*/ */
UnsignedInt8888 = GL_UNSIGNED_INT_8_8_8_8, UnsignedInt8888 = GL_UNSIGNED_INT_8_8_8_8,
/** /**
* ABGR, unsigned int, each component 8bit. * ABGR, unsigned int, each component 8bit.
* @requires_gl Only RGBA component ordering is available in OpenGL ES, see * @requires_gl Only RGBA component ordering is available in OpenGL ES, see
* @ref Magnum::ColorType "ColorType::UnsignedInt8888" for more * @ref Magnum::ColorType::UnsignedInt8888 "ColorType::UnsignedInt8888"
* information. * for more information.
*/ */
UnsignedInt8888Rev = GL_UNSIGNED_INT_8_8_8_8_REV, UnsignedInt8888Rev = GL_UNSIGNED_INT_8_8_8_8_REV,
/** /**
* RGBA, unsigned int, each RGB component 10bit, alpha component 2bit. * RGBA, unsigned int, each RGB component 10bit, alpha component 2bit.
* @requires_gl Only @ref Magnum::ColorType "ColorType::UnsignedInt2101010Rev" * @requires_gl Only @ref Magnum::ColorType::UnsignedInt2101010Rev "ColorType::UnsignedInt2101010Rev"
* is available in OpenGL ES. * is available in OpenGL ES.
*/ */
UnsignedInt1010102 = GL_UNSIGNED_INT_10_10_10_2, UnsignedInt1010102 = GL_UNSIGNED_INT_10_10_10_2,
@ -455,7 +475,8 @@ enum class ColorType: GLenum {
* Float + unsigned int, depth component 32bit float, 24bit gap, stencil * Float + unsigned int, depth component 32bit float, 24bit gap, stencil
* index 8bit. * index 8bit.
* @requires_gl30 %Extension @extension{ARB,depth_buffer_float} * @requires_gl30 %Extension @extension{ARB,depth_buffer_float}
* @requires_gles30 For texture data only, only @ref Magnum::ColorType "ColorType::UnsignedInt248" * @requires_gles30 For texture data only, only
* @ref Magnum::ColorType::UnsignedInt248 "ColorType::UnsignedInt248"
* is available in OpenGL ES 2.0. * is available in OpenGL ES 2.0.
*/ */
Float32UnsignedInt248Rev = GL_FLOAT_32_UNSIGNED_INT_24_8_REV Float32UnsignedInt248Rev = GL_FLOAT_32_UNSIGNED_INT_24_8_REV

58
src/TextureFormat.h

@ -25,7 +25,7 @@
*/ */
/** @file /** @file
* @brief Enum Magnum::TextureFormat * @brief Enum @ref Magnum::TextureFormat
*/ */
#include "OpenGL.h" #include "OpenGL.h"
@ -35,13 +35,20 @@ namespace Magnum {
/** /**
@brief Internal texture format @brief Internal texture format
@see Texture, CubeMapTexture, CubeMapTextureArray In most cases you may want to use @ref TextureFormat::R8 (for grayscale
textures), @ref TextureFormat::RGB8 or @ref TextureFormat::RGBA8. The matching
color format is then @ref ColorFormat::Red, @ref ColorFormat::RGB or
@ref ColorFormat::RGBA along with @ref ColorType::UnsignedByte. See
documentation of these values for possible limitations when using OpenGL ES 2.0
or WebGL.
@see @ref Texture, @ref CubeMapTexture, @ref CubeMapTextureArray
*/ */
enum class TextureFormat: GLenum { enum class TextureFormat: GLenum {
/** /**
* Red component, normalized unsigned, size implementation-dependent. * Red component, normalized unsigned, size implementation-dependent.
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, e.g. @ref Magnum::TextureFormat "TextureFormat::R8". * format, e.g. @ref Magnum::TextureFormat::R8 "TextureFormat::R8".
* @requires_gl30 %Extension @extension{ARB,texture_rg} * @requires_gl30 %Extension @extension{ARB,texture_rg}
* @requires_gles30 %Extension @es_extension{EXT,texture_rg} * @requires_gles30 %Extension @es_extension{EXT,texture_rg}
*/ */
@ -55,8 +62,8 @@ enum class TextureFormat: GLenum {
/** /**
* Red component, normalized unsigned byte. * Red component, normalized unsigned byte.
* @requires_gl30 %Extension @extension{ARB,texture_rg} * @requires_gl30 %Extension @extension{ARB,texture_rg}
* @requires_gles30 Use @ref Magnum::TextureFormat "TextureFormat::Red" in * @requires_gles30 Use @ref Magnum::TextureFormat::Red "TextureFormat::Red"
* OpenGL ES 2.0 instead. * in OpenGL ES 2.0 instead.
*/ */
R8 = GL_R8, R8 = GL_R8,
#endif #endif
@ -65,7 +72,7 @@ enum class TextureFormat: GLenum {
* Red and green component, normalized unsigned, size * Red and green component, normalized unsigned, size
* implementation-dependent. * implementation-dependent.
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, e.g. @ref Magnum::TextureFormat "TextureFormat::RG8". * format, e.g. @ref Magnum::TextureFormat::RG8 "TextureFormat::RG8".
* @requires_gl30 %Extension @extension{ARB,texture_rg} * @requires_gl30 %Extension @extension{ARB,texture_rg}
* @requires_gles30 %Extension @es_extension{EXT,texture_rg} * @requires_gles30 %Extension @es_extension{EXT,texture_rg}
*/ */
@ -79,8 +86,8 @@ enum class TextureFormat: GLenum {
/** /**
* Red and green component, each normalized unsigned byte. * Red and green component, each normalized unsigned byte.
* @requires_gl30 %Extension @extension{ARB,texture_rg} * @requires_gl30 %Extension @extension{ARB,texture_rg}
* @requires_gles30 Use @ref Magnum::TextureFormat "TextureFormat::RG" in * @requires_gles30 Use @ref Magnum::TextureFormat::RG "TextureFormat::RG"
* OpenGL ES 2.0 instead. * in OpenGL ES 2.0 instead.
*/ */
RG8 = GL_RG8, RG8 = GL_RG8,
#endif #endif
@ -88,7 +95,7 @@ enum class TextureFormat: GLenum {
/** /**
* RGB, normalized unsigned, size implementation-dependent. * RGB, normalized unsigned, size implementation-dependent.
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, e.g. @ref Magnum::TextureFormat "TextureFormat::RGB8". * format, e.g. @ref Magnum::TextureFormat::RGB8 "TextureFormat::RGB8".
*/ */
RGB = GL_RGB, RGB = GL_RGB,
@ -105,7 +112,7 @@ enum class TextureFormat: GLenum {
/** /**
* RGBA, normalized unsigned, size implementation-dependent. * RGBA, normalized unsigned, size implementation-dependent.
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, e.g. @ref Magnum::TextureFormat "TextureFormat::RGBA8". * format, e.g. @ref Magnum::TextureFormat::RGBA8 "TextureFormat::RGBA8".
*/ */
RGBA = GL_RGBA, RGBA = GL_RGBA,
@ -476,9 +483,9 @@ enum class TextureFormat: GLenum {
* Luminance, normalized unsigned, single value used for all RGB channels. * Luminance, normalized unsigned, single value used for all RGB channels.
* Size implementation-dependent. * Size implementation-dependent.
* @deprecated_gl Included for compatibility reasons only, use * @deprecated_gl Included for compatibility reasons only, use
* @ref Magnum::TextureFormat "TextureFormat::R8" instead. * @ref Magnum::TextureFormat::R8 "TextureFormat::R8" instead.
* @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use * @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use
* @ref Magnum::TextureFormat "TextureFormat::R8" instead. * @ref Magnum::TextureFormat::R8 "TextureFormat::R8" instead.
*/ */
Luminance = GL_LUMINANCE, Luminance = GL_LUMINANCE,
@ -487,9 +494,9 @@ enum class TextureFormat: GLenum {
* RGB channels, second value is used for alpha channel. Size * RGB channels, second value is used for alpha channel. Size
* implementation-dependent. * implementation-dependent.
* @deprecated_gl Included for compatibility reasons only, use * @deprecated_gl Included for compatibility reasons only, use
* @ref Magnum::TextureFormat "TextureFormat::RG8" instead. * @ref Magnum::TextureFormat::RG8 "TextureFormat::RG8" instead.
* @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use * @requires_gles20 Not available in ES 3.0 or desktop OpenGL. Use
* @ref Magnum::TextureFormat "TextureFormat::RG8" instead. * @ref Magnum::TextureFormat::RG8 "TextureFormat::RG8" instead.
*/ */
LuminanceAlpha = GL_LUMINANCE_ALPHA, LuminanceAlpha = GL_LUMINANCE_ALPHA,
#endif #endif
@ -509,8 +516,9 @@ enum class TextureFormat: GLenum {
/** /**
* RGB, each component normalized unsigned 5bit. * RGB, each component normalized unsigned 5bit.
* @requires_gl Use @ref Magnum::TextureFormat "TextureFormat::RGB5A1" or * @requires_gl Use @ref Magnum::TextureFormat::RGB5A1 "TextureFormat::RGB5A1"
* @ref Magnum::TextureFormat "TextureFormat::RGB565" in OpenGL ES. * or @ref Magnum::TextureFormat::RGB565 "TextureFormat::RGB565" in
* OpenGL ES.
*/ */
RGB5 = GL_RGB5, RGB5 = GL_RGB5,
#endif #endif
@ -552,8 +560,8 @@ enum class TextureFormat: GLenum {
/** /**
* RGB, unsigned with exponent, each RGB component 9bit, exponent 5bit. * RGB, unsigned with exponent, each RGB component 9bit, exponent 5bit.
* @requires_gl30 %Extension @extension{EXT,texture_shared_exponent} * @requires_gl30 %Extension @extension{EXT,texture_shared_exponent}
* @requires_gles30 Use @ref Magnum::TextureFormat "TextureFormat::RGB" in * @requires_gles30 Use @ref Magnum::TextureFormat::RGB "TextureFormat::RGB"
* OpenGL ES 2.0 instead. * in OpenGL ES 2.0 instead.
*/ */
RGB9E5 = GL_RGB9_E5, RGB9E5 = GL_RGB9_E5,
#endif #endif
@ -562,7 +570,7 @@ enum class TextureFormat: GLenum {
* sRGB, normalized unsigned, size implementation-dependent. * sRGB, normalized unsigned, size implementation-dependent.
* @todo is this allowed in core? * @todo is this allowed in core?
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, i.e. @ref Magnum::TextureFormat "TextureFormat::SRGB8". * format, i.e. @ref Magnum::TextureFormat::SRGB8 "TextureFormat::SRGB8".
* @requires_es_extension %Extension @es_extension{EXT,sRGB} * @requires_es_extension %Extension @es_extension{EXT,sRGB}
*/ */
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
@ -574,8 +582,8 @@ enum class TextureFormat: GLenum {
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
/** /**
* sRGB, each component normalized unsigned byte. * sRGB, each component normalized unsigned byte.
* @requires_gles30 Use @ref Magnum::TextureFormat "TextureFormat::SRGB" in * @requires_gles30 Use @ref Magnum::TextureFormat::SRGB "TextureFormat::SRGB"
* OpenGL ES 2.0 instead. * in OpenGL ES 2.0 instead.
*/ */
SRGB8 = GL_SRGB8, SRGB8 = GL_SRGB8,
#endif #endif
@ -633,7 +641,7 @@ enum class TextureFormat: GLenum {
* sRGBA, normalized unsigned, size implementation-dependent. * sRGBA, normalized unsigned, size implementation-dependent.
* @todo is this allowed in core? * @todo is this allowed in core?
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, i.e. @ref Magnum::TextureFormat "TextureFormat::SRGB8Alpha8". * format, i.e. @ref Magnum::TextureFormat::SRGB8Alpha8 "TextureFormat::SRGB8Alpha8".
* @requires_es_extension %Extension @es_extension{EXT,sRGB} * @requires_es_extension %Extension @es_extension{EXT,sRGB}
*/ */
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
@ -645,7 +653,7 @@ enum class TextureFormat: GLenum {
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
/** /**
* sRGBA, each component normalized unsigned byte. * sRGBA, each component normalized unsigned byte.
* @requires_gles30 Use @ref Magnum::TextureFormat "TextureFormat::SRGBAlpha" * @requires_gles30 Use @ref Magnum::TextureFormat::SRGBAlpha "TextureFormat::SRGBAlpha"
* in OpenGL ES 2.0 instead. * in OpenGL ES 2.0 instead.
*/ */
SRGB8Alpha8 = GL_SRGB8_ALPHA8, SRGB8Alpha8 = GL_SRGB8_ALPHA8,
@ -742,7 +750,7 @@ enum class TextureFormat: GLenum {
/** /**
* Depth component, size implementation-dependent. * Depth component, size implementation-dependent.
* @deprecated_gl Prefer to use the exactly specified version of this * @deprecated_gl Prefer to use the exactly specified version of this
* format, e.g. @ref Magnum::TextureFormat "TextureFormat::DepthComponent16". * format, e.g. @ref Magnum::TextureFormat::DepthComponent16 "TextureFormat::DepthComponent16".
* @requires_gles30 %Extension @es_extension{OES,depth_texture} or * @requires_gles30 %Extension @es_extension{OES,depth_texture} or
* @es_extension{ANGLE,depth_texture} * @es_extension{ANGLE,depth_texture}
*/ */
@ -801,7 +809,7 @@ enum class TextureFormat: GLenum {
/** /**
* Depth and stencil component, size implementation-dependent. * Depth and stencil component, size implementation-dependent.
* @deprecated_gl Prefer to use exactly specified version of this format, * @deprecated_gl Prefer to use exactly specified version of this format,
* e.g. @ref Magnum::TextureFormat "TextureFormat::Depth24Stencil8". * e.g. @ref Magnum::TextureFormat::Depth24Stencil8 "TextureFormat::Depth24Stencil8".
* @requires_gles30 %Extension @es_extension{OES,packed_depth_stencil} * @requires_gles30 %Extension @es_extension{OES,packed_depth_stencil}
*/ */
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2

Loading…
Cancel
Save