Hello all, I have a simple problem that I'm hoping I can get a solution for. I'm currently using a modified version of the replica island opengl code for the opengl version of my application. Everything is working great, and I'm getting the FPS I would like, the only problem is that on initial load, when I'm loading the textures into opengl, my application is just displaying a black screen
Obviously, after the textures load the renderer thread can continue on to onDrawFrame(), then everything looks and works great. So my question is, how can I put up a loading screen while opengl is loading the textures in the background?
I've tried starting out with a canvas view, then background loading the textures. However the renderer does not have a surface when its in the background and therefore does not load the textures. The call to switch from the canvas view to the surface view therefore never happens and my application is left stuck at the loading screen.
The loadTextures() call, at least in the replica island code, blocks the renderer thread, and as far as I can see you can't really do more than one thing at a time with opengl anyways.
Any help would be much appreciated. Thank you.