HI
at line: std::string imgfile = “./data/images/image” + std::to_string(i + 1) + “.png”;
it tries to open the *.wasm file? I have the data folder aside the wasm file and also in PackageSources folder.
constexpr int imageCount = 3;
for (int i = 0; i < imageCount; ++i) {
std::string imgfile = "./data/images/image" + std::to_string(i + 1) + ".png";
gData.images[i] = nvgCreateImage(vg, imgfile.c_str(), 0);
if (gData.images[i] == 0) {
std::cerr << "Could not load " << imgfile << std::endl;
return -1;
}
}
Thanks