Nebula
|
#include <pixelformat.h>
Pixel format enumeration.
FIXME: use DX10 notations (more flexible but less readable...)
Public Types | |
enum | Code { R8G8B8X8 = 0 , R8G8B8 , R8G8B8A8 , R5G6B5 , R5G5B5A1 , R4G4B4A4 , DXT1 , DXT1A , DXT3 , DXT5 , DXT1sRGB , DXT1AsRGB , DXT3sRGB , DXT5sRGB , BC4 , BC5 , BC7 , BC7sRGB , R8 , R16F , R16 , R16G16F , R16G16 , R16G16B16A16F , R16G16B16A16 , R32F , R32 , R32G32F , R32G32 , R32G32B32A32F , R32G32B32A32 , R32G32B32F , R32G32B32 , R11G11B10F , R9G9B9E5F , SRGBA8 , R10G10B10X2 , R10G10B10A2 , D24X8 , D24S8 , D32S8 , D16S8 , D32 , S8 , B8G8R8 , B8G8R8A8 , B5G6R5 , B5G6R5A1 , B4G4R4A4 , NumPixelFormats , BC1 = DXT1 , BC3 = DXT5 , InvalidPixelFormat = 0xFFFFFFFF } |
enums More... | |
Static Public Member Functions | |
static Code | FromString (const Util::String &str) |
convert from string | |
static Util::String | ToString (Code code) |
convert to string | |
static uint | ToSize (Code code) |
convert to byte size | |
static uint | ToChannels (Code code) |
convert to number of channesl | |
static bool | ToCompressed (Code code) |
figure out if block compressed | |
static SizeT | ToTexelSize (Code code) |
calculate texel dimensions | |
static SizeT | ToBlockSize (Code code) |
Calculate texel block size. | |
static bool | IsDepthFormat (Code code) |
return true if depth format | |
static bool | IsStencilFormat (Code code) |
return true if depth format | |
static bool | IsDepthStencilFormat (Code code) |
Return true if depth/stencil format. | |
static CoreGraphics::ImageBits | ToImageBits (Code code) |
Return Image bits from format. | |
enums
|
static |
convert from string
Convert a pixel format string into a pixel format code.
|
static |
return true if depth format
|
static |
Return true if depth/stencil format.
|
static |
return true if depth format
|
static |
figure out if block compressed
|
static |
Return Image bits from format.
|
static |
convert to string
Convert pixel format code into a string.