| 2028 | |
| 2029 | } |
| 2030 | LfTexture lf_load_texture_from_memory_resized(const void* data, size_t size, bool flip, LfTextureFiltering filter, uint32_t w, uint32_t h) { |
| 2031 | LfTexture tex; |
| 2032 | |
| 2033 | int32_t channels; |
| 2034 | unsigned char* resized = lf_load_texture_data_from_memory_resized(data, size, &channels, NULL, NULL, flip, w, h); |
| 2035 | lf_create_texture_from_image_data(LF_TEX_FILTER_LINEAR, &tex.id, w, h, channels, resized); |
| 2036 | |
| 2037 | tex.width = w; |
| 2038 | tex.height = h; |
| 2039 | |
| 2040 | return tex; |
| 2041 | } |
| 2042 | |
| 2043 | |
| 2044 | LfTexture lf_load_texture_from_memory_resized_factor(const void* data, size_t size, bool flip, LfTextureFiltering filter, float wfactor, float hfactor) { |
nothing calls this directly
no test coverage detected