STATE_light_is_activated_before_render
The function also returns in the light_operation param the type of operation. Example: int light_operation; STATE_light_is_activated_before_render(my_light, &light_operation);