Testing textures

This commit is contained in:
2023-05-11 23:57:08 -07:00
parent 642f1408ff
commit f44fe25011
7 changed files with 76 additions and 173 deletions

View File

@ -18,7 +18,10 @@ int32_t TextureTool::start() {
// Load input file
File in(flags["input"]);
if(!in.open(FILE_MODE_READ)) return 1;
if(!in.open(FILE_MODE_READ)) {
std::cout << "Failed to open input file " << in.filename << std::endl;
return 1;
}
int w, h, channels;
auto imageRaw = stbi_load_from_file(in.file, &w, &h, &channels, STBI_rgb_alpha);