I'm working on a project that I started with the CrashLander sample code as a base (meaning I use the same EAGLView to setup the OpenGL view). I've got scenes rendering on my project is progressing well, but I've gotten stuck with the matter of drawing a whole scene to a texture (with alpha blending and such). I'm trying to follow the instructions given here:
Drawing to a texture - steinsoft.net
However, if at all possible I'd like to load the textures at startup in the applicationDidFinishLoading function. If I attempt to draw to a texture in my renderScene function (meaning using the program's main OpenGL context to draw in and clearing it afterward), I have no problems, but I don't seem to know enough about OpenGL and the iPhone's implementation to move the texture creation to a different context. I've found many documents regarding this subject, including drawing offscreen, but I don't quite get it.
Could anyone give me a hand with rendering to a texture?