mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-21 18:09:46 +00:00
rename ImageFormat enum items
This commit is contained in:
parent
1940fa7fa4
commit
163a0a8c93
18 changed files with 58 additions and 58 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue