12 stbi_set_flip_vertically_on_load(
true);
14 float* data = stbi_loadf(path, &x, &y, &comp, STBI_default);
18 for (
int x0 = 0; x0 < x; x0++)
20 for (
int y0 = 0; y0 < y; y0++)
22 int idx = (y0 * x + x0) * comp;
23 for (
int c0 = 0; c0 < comp; c0++) {
24 img(x0, y0)[c0] = data[idx + c0];