libgdx / box2dlights

Fork of box2dlights by Kalle Hamalainen
Apache License 2.0
256 stars 81 forks source link

Create method for adding light to RayHandler #50

Closed felipefcm closed 7 years ago

felipefcm commented 9 years ago

Instead of inserting light after creating new instance, create a method to add light to RayHandler. I think that the current behaviour is not much common, given that in various situations you want to create the light but not immediately start to use it, or even have created RayHandler instance yet.

rinold commented 9 years ago

The method to add light exists, but no possibility to create light without RayHandler, ops...

felipefcm commented 9 years ago

I forgot that I could just create the light in 'not active' state until needed. Thanks!