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

Function lf_load_texture_from_memory_resized

leif.c:2030–2041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2028
2029}
2030LfTexture 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
2044LfTexture lf_load_texture_from_memory_resized_factor(const void* data, size_t size, bool flip, LfTextureFiltering filter, float wfactor, float hfactor) {

Callers

nothing calls this directly

Tested by

no test coverage detected