www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on November 30, 2011, 06:21:11 am

Title: There Should be a util.Light.remove(World)
Post by: AGP 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.
Title: Re: There Should be a util.Light.remove(World)
Post by: EgonOlsen 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.
Title: Re: There Should be a util.Light.remove(World)
Post by: AGP on December 01, 2011, 02:35:29 am
Ever? Even though it annoys you? How come?
Title: Re: There Should be a util.Light.remove(World)
Post by: EgonOlsen 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.