Author Topic: There Should be a util.Light.remove(World)  (Read 1754 times)

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
There Should be a util.Light.remove(World)
« on: November 30, 2011, 06:21:11 am »
One should be able to remove an added light in the same object-oriented fashion as it was created. Right? Disabling seems to be all one can do, as there seems to be no way (object-oriented or otherwise) to actually remove a light.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: There Should be a util.Light.remove(World)
« Reply #1 on: November 30, 2011, 06:42:41 am »
No, there isn't. And there's a reason for this that i explained in some other threads. The solution is to reuse lights, maybe by creating a simple light pool. Such pool can be found in one of these threads as well.
It annoys me too, but i'm not going to change this implementation detail anymore.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: There Should be a util.Light.remove(World)
« Reply #2 on: December 01, 2011, 02:35:29 am »
Ever? Even though it annoys you? How come?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: There Should be a util.Light.remove(World)
« Reply #3 on: December 01, 2011, 06:55:41 am »
Maybe not forever...but for now, it'll stay this way. It's a larger undertaking to change it as it may look and i don't consider it to be that much of a problem even if it is annoying. I prefer adding other stuff in the limited time that there is.