www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Irony on April 16, 2014, 10:02:50 pm

Title: Texture loading questions
Post by: Irony on April 16, 2014, 10:02:50 pm
1. When I call addTexture from onDrawFrame() , does it block or will onDrawFrame continue?
2. When TextureManager.containsTexture returns true, is the texture already fully loaded?

If 1 and 2 are No, how can I check if a texture has been completely loaded?
Title: Re: Texture loading questions
Post by: EgonOlsen on April 16, 2014, 10:19:47 pm
The loading blocks. If the method returns, the texture has been loaded. That doesn't mean that it has been transfered to the gpu memory already. You can force this by using http://www.jpct.net/jpct-ae/doc/com/threed/jpct/TextureManager.html#preWarm(com.threed.jpct.FrameBuffer) (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/TextureManager.html#preWarm(com.threed.jpct.FrameBuffer))
Title: Re: Texture loading questions
Post by: Irony on April 16, 2014, 11:20:38 pm
Thanks. I'm having a little trouble implementing a simple splash screen, but at least now I know it hasn't to do with any multithreading.