|
|
|
@ -56,13 +56,6 @@ class MAGNUM_EXPORT AbstractImage { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static std::size_t pixelSize(ImageFormat format, ImageType type); |
|
|
|
static std::size_t pixelSize(ImageFormat format, ImageType type); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Constructor |
|
|
|
|
|
|
|
* @param format Format of pixel data |
|
|
|
|
|
|
|
* @param type Data type of pixel data |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
constexpr explicit AbstractImage(ImageFormat format, ImageType type): _format(format), _type(type) {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @brief Format of pixel data */ |
|
|
|
/** @brief Format of pixel data */ |
|
|
|
constexpr ImageFormat format() const { return _format; } |
|
|
|
constexpr ImageFormat format() const { return _format; } |
|
|
|
|
|
|
|
|
|
|
|
@ -77,6 +70,13 @@ class MAGNUM_EXPORT AbstractImage { |
|
|
|
std::size_t pixelSize() const { return pixelSize(_format, _type); } |
|
|
|
std::size_t pixelSize() const { return pixelSize(_format, _type); } |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
protected: |
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Constructor |
|
|
|
|
|
|
|
* @param format Format of pixel data |
|
|
|
|
|
|
|
* @param type Data type of pixel data |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
constexpr explicit AbstractImage(ImageFormat format, ImageType type): _format(format), _type(type) {} |
|
|
|
|
|
|
|
|
|
|
|
~AbstractImage() = default; |
|
|
|
~AbstractImage() = default; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DOXYGEN_GENERATING_OUTPUT |
|
|
|
#ifdef DOXYGEN_GENERATING_OUTPUT |
|
|
|
|