Magnum/PixelFormat.h file

Enum Magnum::PixelFormat, Magnum::CompressedPixelFormat, function Magnum::pixelSize(), Magnum::isPixelFormatImplementationSpecific(), Magnum::pixelFormatWrap(), Magnum::pixelFormatUnwrap(), Magnum::isCompressedPixelFormatImplementationSpecific(), Magnum::compressedPixelFormatWrap(), Magnum::compressedPixelFormatUnwrap()

Contents

Namespaces

namespace Magnum
Root namespace.

Enums

enum class PixelFormat: UnsignedInt { R8Unorm, RG8Unorm, RGB8Unorm, RGBA8Unorm, R8Snorm, RG8Snorm, RGB8Snorm, RGBA8Snorm, R8UI, RG8UI, RGB8UI, RGBA8UI, R8I, RG8I, RGB8I, RGBA8I, R16Unorm, RG16Unorm, RGB16Unorm, RGBA16Unorm, R16Snorm, RG16Snorm, RGB16Snorm, RGBA16Snorm, R16UI, RG16UI, RGB16UI, RGBA16UI, R16I, RG16I, RGB16I, RGBA16I, R32UI, RG32UI, RGB32UI, RGBA32UI, R32I, RG32I, RGB32I, RGBA32I, R16F, RG16F, RGB16F, RGBA16F, R32F, RG32F, RGB32F, RGBA32F, Red = UnsignedInt(GL::PixelFormat::Red) deprecated, Green = UnsignedInt(GL::PixelFormat::Green) deprecated, Blue = UnsignedInt(GL::PixelFormat::Blue) deprecated, Luminance = UnsignedInt(GL::PixelFormat::Luminance) deprecated, RG = UnsignedInt(GL::PixelFormat::RG) deprecated, LuminanceAlpha = UnsignedInt(GL::PixelFormat::LuminanceAlpha) deprecated, RGB = UnsignedInt(GL::PixelFormat::RGB) deprecated, RGBA = UnsignedInt(GL::PixelFormat::RGBA) deprecated, BGR = UnsignedInt(GL::PixelFormat::BGR) deprecated, BGRA = UnsignedInt(GL::PixelFormat::BGRA) deprecated, SRGB = UnsignedInt(GL::PixelFormat::SRGB) deprecated, SRGBAlpha = UnsignedInt(GL::PixelFormat::SRGBAlpha) deprecated, RedInteger = UnsignedInt(GL::PixelFormat::RedInteger) deprecated, GreenInteger = UnsignedInt(GL::PixelFormat::GreenInteger) deprecated, BlueInteger = UnsignedInt(GL::PixelFormat::BlueInteger) deprecated, RGInteger = UnsignedInt(GL::PixelFormat::RGInteger) deprecated, RGBInteger = UnsignedInt(GL::PixelFormat::RGBInteger) deprecated, RGBAInteger = UnsignedInt(GL::PixelFormat::RGBAInteger) deprecated, BGRInteger = UnsignedInt(GL::PixelFormat::BGRInteger) deprecated, BGRAInteger = UnsignedInt(GL::PixelFormat::BGRAInteger) deprecated, DepthComponent = UnsignedInt(GL::PixelFormat::DepthComponent) deprecated, StencilIndex = UnsignedInt(GL::PixelFormat::StencilIndex) deprecated, DepthStencil = UnsignedInt(GL::PixelFormat::DepthStencil) deprecated }
Format of pixel data.
enum class CompressedPixelFormat: UnsignedInt { Bc1RGBUnorm, Bc1RGBAUnorm, Bc2RGBAUnorm, Bc3RGBAUnorm, Red = UnsignedInt(GL::CompressedPixelFormat::Red) deprecated, RG = UnsignedInt(GL::CompressedPixelFormat::RG) deprecated, RGB = UnsignedInt(GL::CompressedPixelFormat::RGB) deprecated, RGBA = UnsignedInt(GL::CompressedPixelFormat::RGBA) deprecated, RedRgtc1 = UnsignedInt(GL::CompressedPixelFormat::RedRgtc1) deprecated, RGRgtc2 = UnsignedInt(GL::CompressedPixelFormat::RGRgtc2) deprecated, SignedRedRgtc1 = UnsignedInt(GL::CompressedPixelFormat::SignedRedRgtc1) deprecated, SignedRGRgtc2 = UnsignedInt(GL::CompressedPixelFormat::SignedRGRgtc2) deprecated, RGBBptcUnsignedFloat = UnsignedInt(GL::CompressedPixelFormat::RGBBptcUnsignedFloat) deprecated, RGBBptcSignedFloat = UnsignedInt(GL::CompressedPixelFormat::RGBBptcSignedFloat) deprecated, RGBABptcUnorm = UnsignedInt(GL::CompressedPixelFormat::RGBABptcUnorm) deprecated, SRGBAlphaBptcUnorm = UnsignedInt(GL::CompressedPixelFormat::SRGBAlphaBptcUnorm) deprecated, RGB8Etc2 = UnsignedInt(GL::CompressedPixelFormat::RGB8Etc2) deprecated, SRGB8Etc2 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Etc2) deprecated, RGB8PunchthroughAlpha1Etc2 = UnsignedInt(GL::CompressedPixelFormat::RGB8PunchthroughAlpha1Etc2) deprecated, SRGB8PunchthroughAlpha1Etc2 = UnsignedInt(GL::CompressedPixelFormat::SRGB8PunchthroughAlpha1Etc2) deprecated, RGBA8Etc2Eac = UnsignedInt(GL::CompressedPixelFormat::RGBA8Etc2Eac) deprecated, SRGB8Alpha8Etc2Eac = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Etc2Eac) deprecated, R11Eac = UnsignedInt(GL::CompressedPixelFormat::R11Eac) deprecated, SignedR11Eac = UnsignedInt(GL::CompressedPixelFormat::SignedR11Eac) deprecated, RG11Eac = UnsignedInt(GL::CompressedPixelFormat::RG11Eac) deprecated, SignedRG11Eac = UnsignedInt(GL::CompressedPixelFormat::SignedRG11Eac) deprecated, RGBS3tcDxt1 = UnsignedInt(GL::CompressedPixelFormat::RGBS3tcDxt1) deprecated, RGBAS3tcDxt1 = UnsignedInt(GL::CompressedPixelFormat::RGBAS3tcDxt1) deprecated, RGBAS3tcDxt3 = UnsignedInt(GL::CompressedPixelFormat::RGBAS3tcDxt3) deprecated, RGBAS3tcDxt5 = UnsignedInt(GL::CompressedPixelFormat::RGBAS3tcDxt5) deprecated, RGBAAstc4x4 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc4x4) deprecated, SRGB8Alpha8Astc4x4 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc4x4) deprecated, RGBAAstc5x4 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc5x4) deprecated, SRGB8Alpha8Astc5x4 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc5x4) deprecated, RGBAAstc5x5 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc5x5) deprecated, SRGB8Alpha8Astc5x5 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc5x5) deprecated, RGBAAstc6x5 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc6x5) deprecated, SRGB8Alpha8Astc6x5 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc6x5) deprecated, RGBAAstc6x6 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc6x6) deprecated, SRGB8Alpha8Astc6x6 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc6x6) deprecated, RGBAAstc8x5 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc8x5) deprecated, SRGB8Alpha8Astc8x5 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc8x5) deprecated, RGBAAstc8x6 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc8x6) deprecated, SRGB8Alpha8Astc8x6 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc8x6) deprecated, RGBAAstc8x8 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc8x8) deprecated, SRGB8Alpha8Astc8x8 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc8x8) deprecated, RGBAAstc10x5 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc10x5) deprecated, SRGB8Alpha8Astc10x5 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc10x5) deprecated, RGBAAstc10x6 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc10x6) deprecated, SRGB8Alpha8Astc10x6 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc10x6) deprecated, RGBAAstc10x8 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc10x8) deprecated, SRGB8Alpha8Astc10x8 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc10x8) deprecated, RGBAAstc10x10 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc10x10) deprecated, SRGB8Alpha8Astc10x10 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc10x10) deprecated, RGBAAstc12x10 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc12x10) deprecated, SRGB8Alpha8Astc12x10 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc12x10) deprecated, RGBAAstc12x12 = UnsignedInt(GL::CompressedPixelFormat::RGBAAstc12x12) deprecated, SRGB8Alpha8Astc12x12 = UnsignedInt(GL::CompressedPixelFormat::SRGB8Alpha8Astc12x12) deprecated }
Format of compressed pixel data.

Functions

auto pixelSize(PixelFormat format) -> UnsignedInt
Pixel size.
auto operator<<(Debug& debug, PixelFormat value) -> Debug&
Debug output operator.
auto isPixelFormatImplementationSpecific(PixelFormat format) -> bool constexpr
Whether a PixelFormat value wraps an implementation-specific identifier.
template<class T>
auto pixelFormatWrap(T implementationSpecific) -> PixelFormat constexpr
Wrap an implementation-specific pixel format identifier in PixelFormat.
template<class T = UnsignedInt>
auto pixelFormatUnwrap(PixelFormat format) -> T constexpr
Unwrap an implementation-specific pixel format identifier from PixelFormat.
auto operator<<(Debug& debug, CompressedPixelFormat value) -> Debug&
Debug output operator.
auto isCompressedPixelFormatImplementationSpecific(CompressedPixelFormat format) -> bool constexpr
Whether a CompressedPixelFormat value wraps an implementation-specific identifier.
template<class T>
auto compressedPixelFormatWrap(T implementationSpecific) -> CompressedPixelFormat constexpr
Wrap an implementation-specific pixel format identifier in a CompressedPixelFormat.
template<class T = UnsignedInt>
auto compressedPixelFormatUnwrap(CompressedPixelFormat format) -> T constexpr
Unwrap an implementation-specific pixel format identifier from a CompressedPixelFormat.