Surprisingly I havent learnt display lists yet fully. I know they are used to speed up the rendering of multiple objects. I was wondering if you could but something else into a display list, eg: loading textures. If you could then loading a texture would be that much quicker… I dont know, just speculating…
No you cant load a texture in a display list.
anything thats not to do with opengl like loading textures (and also things that are see the documentation for specifics aint included in the display list)
printf("%d",i); // will print out 0
You may not be able to load textures, but you can bind a texture object (ie call glBindTexture). If you include a bind call for the correct texture in the display list before drawing geometry, it makes quite a neat way of drawing a textured object.