STATE_light2_get_first_light

 

 




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

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com