How can I loop through all the lights that I have defined ?
I need something like this:
for (light = 0, light <= max_light, light++)
switch_on(light);
The Problem is that OpenGL uses the enum const GL_LIGHT0, GL_LIGHT1 and so on. And I can not rely on that GL_LIGHT1 = GL_LIGHT0 + 1