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

@ -401,7 +401,7 @@ static int l_meta_meta_call(lua::State* L) {
return newuserdata<LuaCanvas>(
L,
nullptr,
std::make_shared<ImageData>(ImageFormat::rgba8888, size.x, size.y)
std::make_shared<ImageData>(ImageFormat::RGBA8888, size.x, size.y)
);
}

View file

@ -56,7 +56,7 @@ static int l_dump(lua::State* L) {
io::path file = require_string(L, 2);
uint w = heightmap->getWidth();
uint h = heightmap->getHeight();
ImageData image(ImageFormat::rgb888, w, h);
ImageData image(ImageFormat::RGB888, w, h);
auto heights = heightmap->getValues();
auto raster = image.getData();
for (uint y = 0; y < h; y++) {