canvasman Posted March 4, 2019 Share Posted March 4, 2019 I am using PIXI's loader currently. Its working alright but one loader can only load one set of images at the time. So when I start loading, I need to wait until it finishes before adding new image urls to load AFAIK? I would just like simple way for loading images with just callback if success. I have this hassle now with multiple loaders and adding callbacks to them if not loaded yet otherwise return loaded texture. EDIT: oh looks like .fromImage is deprecated after v5. Is it possible to make texture from Image() object. Would it be complicated to create own loader that way? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 4, 2019 Share Posted March 4, 2019 Yes, it is possible to create texture from Image() please look closer, I remember that it was easy as passing ImageResource somewhere ... No, fromImage is still a valid way, it was deprecated because there's "FROM" function now. "Texture.from". Yes, you can just create one extra loader if you suddenly need to download one more texture. canvasman 1 Quote Link to comment Share on other sites More sharing options...
canvasman Posted March 4, 2019 Author Share Posted March 4, 2019 4 minutes ago, ivan.popelyshev said: Yes, it is possible to create texture from Image() please look closer, I remember that it was easy as passing ImageResource somewhere ... No, fromImage is still a valid way, it was deprecated because there's "FROM" function now. "Texture.from". Yes, you can just create one extra loader if you suddenly need to download one more texture. Okay! So if I wanted, I could load image to Image() object and pass that to Texture.from to create texture from it? Btw would that be syncronous task when Texture.from processes the data from Image() Thanks for your answer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.