Original Post
Hey, First of, I'm not using shaders. My ogl scene is described through a text file where I type the different scene elements (as a map). One of these elements is lighting, and so, I want to be able to do something like:
light point 1.0 1.0 1.0 1.0 0.0 0.0 1.0 1.0 1.0
light point 1.0 1.0 1.0 0.0 1.0 0.0 1.0 1.0 1.0
this would create two point lights in my scene. My problem is how I "convert" this to code, I mean, is there any way to dynamically create lights, or do I always have to see how many lights to I have and just call GL_LIGHT0, GL_LIGHT1, and so on? Any other suggestions? Thanks!