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 }
Format of pixel data.
enum class CompressedPixelFormat: UnsignedInt { Bc1RGBUnorm, Bc1RGBAUnorm, Bc2RGBAUnorm, Bc3RGBAUnorm }
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.