MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / stbi_load

Function stbi_load

deps/LLGL/examples/Cpp/ExampleBase/stb/stb_image.h:1221–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219
1220
1221STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)
1222{
1223 FILE *f = stbi__fopen(filename, "rb");
1224 unsigned char *result;
1225 if (!f) return stbi__errpuc("can't fopen", "Unable to open file");
1226 result = stbi_load_from_file(f,x,y,comp,req_comp);
1227 fclose(f);
1228 return result;
1229}
1230
1231STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
1232{

Callers 7

mainFunction · 0.85
mainFunction · 0.85
LoadImageFunction · 0.85
LoadTextureWithRendererFunction · 0.85
CreateTexturesMethod · 0.85
LoadImageMethod · 0.85

Calls 2

stbi__fopenFunction · 0.85
stbi_load_from_fileFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
LoadImageFunction · 0.68