10 stbi_set_flip_vertically_on_load(
true);
12 float* data = stbi_loadf(path, &x, &y, &comp, STBI_default);
16 for (
int x0 = 0; x0 < x; x0++) {
17 for (
int y0 = 0; y0 < y; y0++) {
18 int idx = (y0 * x + x0) * comp;
19 for (
int c0 = 0; c0 < comp; c0++) {
20 img(x0, y0)[c0] = data[idx + c0];
27 return data !=
nullptr;