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