rename ImageFormat enum items

This commit is contained in:
MihailRis 2025-12-21 19:05:14 +03:00
parent 1940fa7fa4
commit 163a0a8c93
18 changed files with 58 additions and 58 deletions

View file

@ -6,8 +6,8 @@
#include <memory>
enum class ImageFormat {
rgb888,
rgba8888
RGB888,
RGBA8888
};
class ImageData {
@ -57,7 +57,7 @@ public:
}
size_t getDataSize() const {
size_t channels = 3 + (format == ImageFormat::rgba8888);
size_t channels = 3 + (format == ImageFormat::RGBA8888);
return width * height * channels;
}
};