So I am creating my first opengl es application on the iphone. I want to autorelease an object and that was around the time I noticed that I can’t seem to find the location of the autorelease pool.
1) Is the autorelease pool already created for me in an iphone opengl es application?
2) If it is already created for me how often is the pool being drained?
Do you have a main.m? If you are using the standard GL ES app template, you should see:
If so, then you do have an autorelease pool and it gets drained everytime you go through the runloop.