Closed eviltreehouse closed 3 years ago
This is a good solution, thanks so much! :rocket:
Is there an example or a test you could add for this? Not sure if there's an example that uses LoadTextureFromImage....
@RobLoach example would be nice :) I added a basic one. I also have a test staged but since it requires a live GL context to function I felt it more similar to an actual "integration" test and didn't bundle it in: on my MBP it doubled the test suite time 🐌
Thanks so much! This is great :+1:
const texBunny = r.LoadTextureFromImage(imgBunny); if (! texBunny.id) { console.error('failed to load texture!'); process.exit(1); }
/ ... /
r.UnloadTexture(texBunny); r.UnloadImage(imgBunny);