MCPcopy Create free account
hub / github.com/cococry/leif / lf_load_texture_data

Function lf_load_texture_data

leif.c:2083–2087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2081 return tex;
2082}
2083unsigned char* lf_load_texture_data(const char* filepath, int32_t* width, int32_t* height, int32_t* channels, bool flip) {
2084 stbi_set_flip_vertically_on_load(!flip);
2085 stbi_uc* data = stbi_load(filepath, width, height, channels, STBI_rgb_alpha);
2086 return data;
2087}
2088
2089unsigned char* lf_load_texture_data_resized(const char* filepath, int32_t w, int32_t h, int32_t* channels, bool flip) {
2090 int32_t width, height;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected