Utility class to translate enum values into linked useful data. More...
Static Public Member Functions | |
static PIXEL_FORMAT | getRgbFromBgrFormat (PIXEL_FORMAT format) |
static PIXEL_FORMAT | getEquivalentAlphaFormat (PIXEL_FORMAT format) |
static PIXEL_FORMAT | getEquivalentNoAlphaFormat (PIXEL_FORMAT format) |
static unsigned int | getFormatByteSize (PIXEL_FORMAT format) |
static unsigned int | getFormatCompressionRatioWidth (PIXEL_FORMAT format) |
static unsigned int | getFormatCompressionRatioHeight (PIXEL_FORMAT format) |
static bool | isFormatCompressed (PIXEL_FORMAT format) |
static bool | isFormatFloatingPoint (PIXEL_FORMAT format) |
static bool | hasAlpha (PIXEL_FORMAT format) |
Utility class to translate enum values into linked useful data.
|
static |
Provides an RGB format its BGR format equivalent, if available.
format | The format to convert. |
|
static |
Provides a format with its equivalent with the alpha channel.
format | The format to convert. |
|
static |
Provides a format with its equivalent without the alpha channel.
format | The format to convert. |
|
static |
Translates a pixel format into its byte size, if it were to be tightly packed.
format | The format value to retrieve the size from. |
|
static |
Provides with the compression ratio of a format on the X direction.
format | The format value to retrieve the ratio for. |
|
static |
Provides with the compression ratio of a format on the Y direction.
format | The format value to retrieve the ratio for. |
|
static |
Allows to check if a format is considered as compressed.
format | The format to check. |
|
static |
Allows to check if a format is using floating point values.
format | The format to check. |
|
static |
Allows to check if a format has an alpha channel.
format | The format to check. |