Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
496 stars 120 forks source link

Change stbi to directly decode into the provided memory #407

Open luboslenco opened 4 years ago

luboslenco commented 4 years ago

Change stb to directly decode into the provided memory and only use the buffer for temporary things.

Kinc image loading: https://github.com/Kode/Kinc/blob/master/Sources/kinc/image.c

stb_image lib: https://github.com/Kode/Kinc/blob/master/Sources/kinc/libs/stb_image.h

Related: https://github.com/nothings/stb/issues/58

luboslenco commented 1 year ago

This is still an issue - if someone already had a look then posting any findings is welcome.