| 2081 | return tex; |
| 2082 | } |
| 2083 | unsigned 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 | |
| 2089 | unsigned 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; |
no outgoing calls
no test coverage detected