DavidLudwig / sg13-research

http://dll.fyi/sg13/
0 stars 0 forks source link

Demo: image-file loading (.png, .jpg, maybe more?) #18

Closed DavidLudwig closed 6 years ago

DavidLudwig commented 6 years ago

For now, only .png is supported, as Cairo is being relied on for image-loading, and it only appears to feature .png loading.

Adding support for other image formats should be possible, and without having to modify Cairo. That is beyond the scope of this case.

Regardless, for other image-formats, consider use of https://github.com/nothings/stb/blob/master/stb_image.h , or something else.