lights

hi I need to read in a file with arbitrary (altohgh less than 8 lights)… can I just index them as such

light0 = gl_Light0
light1 = gl_Light0+1
lightn = gl_Light0+n

etc?

Well yes, if you mean GL_LIGHT0 rather that gl_Light0.