|
This function, together with STATE_light_get_next_light()
are used for going over all the defined lights
Example
for(DWORD light=STATE_light_get_first_light(); light!=NULL; light=STATE_light_get_next_light(light) {
Write here the code to do for each light
}
Note that the function STATE_light_create() adds a new light
to top of the queue. So STATE_light_get_first_light()
will always return the last light that was created.
The same rule is for all STATE_xxxx_get_first_xxxx() functions.
|