Talk:Loading Icons

From OSDev Wiki
Jump to: navigation, search

PNG loader code wrong

The PNG loader code using stb_image.h calls stbi__png_load() which I could not find in in stb_image.h. I suspect the statement, "no library linking needed" is essentially wrong, and more files are needed than just stb_image.h. I would like to base my code on the STB image library, but it's going to take a bit of looking around to find the right files. If I find them, I'll edit them in, but I may post partial finds here. Eekee 18:28, 28 January 2024 (CST)

Well this is stb_image.c: https://web.archive.org/web/20070913024502/http://www.nothings.org/stb_image.c Eekee 18:31, 28 January 2024 (CST)
I don't know why someone linked this to the archived version from 2007 when bzt wrote this article much later than that. If you look at an actual current version, you'll find the functions this article references: https://github.com/nothings/stb/blob/master/stb_image.h --klange 02:22, 31 January 2024 (CST)
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox