MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi_loadf

Function stbi_loadf

Source/Utils/stb_image.h:1492–1500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490
1491#ifndef STBI_NO_STDIO
1492STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)
1493{
1494 float *result;
1495 FILE *f = stbi__fopen(filename, "rb");
1496 if (!f) return stbi__errpf("can't fopen", "Unable to open file");
1497 result = stbi_loadf_from_file(f,x,y,comp,req_comp);
1498 fclose(f);
1499 return result;
1500}
1501
1502STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
1503{

Callers

nothing calls this directly

Calls 2

stbi__fopenFunction · 0.85
stbi_loadf_from_fileFunction · 0.85

Tested by

no test coverage detected