tests/sdl_stb_image*.c show how that option lets SDL use it internally and automatically. If you want to call the stbi_* methods directly, that should be possible, I guess you'd need to read the stb header file to see. Can also look inside src/library_sdl.js to see how it calls those methods internally.
On Tue, May 19, 2015 at 2:28 AM, Björn K. <[email protected] > wrote: > Hi there! > > Is there any example where I can see how to use stbi_load_from_memory when > compiling with emcc -s STB_IMAGE=1? > > Best regards, > Björn > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
