Unofficial OpenGL Software Development Kit
0.5.0
|
#include <ImageFormat.h>
An immutable combination of image format parameters.
The image format object will throw if the given format parameters are impossible or inconsistent. The rules for format validation are available.
These objects are immutable once created.
Public Member Functions | |
ImageFormat (PixelDataType _eType, PixelComponents _eFormat, ComponentOrder _eOrder, Bitdepth _eBitdepth, int _lineAlignment) | |
Constructs an image format from individual image data. More... | |
ImageFormat (UncheckedImageFormat _fmt) | |
Implicitly constructs an ImageFormat from an UncheckedImageFormat. More... | |
UncheckedImageFormat | GetUncheckedFormat () const |
Retrieves the contents as an UncheckedImageFormat. | |
size_t | AlignByteCount (size_t byteCount) const |
Computes the aligned byte count from the line alignment. | |
Accessors | |
PixelDataType | Type () const |
PixelComponents | Components () const |
ComponentOrder | Order () const |
Bitdepth | Depth () const |
int | LineAlign () const |
glimg::ImageFormat::ImageFormat | ( | PixelDataType | _eType, |
PixelComponents | _eFormat, | ||
ComponentOrder | _eOrder, | ||
Bitdepth | _eBitdepth, | ||
int | _lineAlignment | ||
) |
Constructs an image format from individual image data.
InvalidFormatException | If the combinations of parameters is not valid. The exception will have a string explaining the problem. |
glimg::ImageFormat::ImageFormat | ( | UncheckedImageFormat | _fmt | ) |
Implicitly constructs an ImageFormat from an UncheckedImageFormat.
InvalidFormatException | If _fmt does not contain valid data. The exception will have a string explaining the problem. |