|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Controller
com.jme.util.LightStateController
The LightStateContraller sorts the from a collection of
lights, the best eight for a particular Spatial. This can be used to create
many lights inside a scene with moving objects. All spatials that use this
controller are required to have there own light state and have the Light
Combine Mode set to REPLACE. The controller uses a copy of a
LightStateController. New lights that are added to the original
LightStateContraller after the controller was created will be ignored. The
Controller allows you to set a update Interval that allows you to tell the
controller when to update.
| Field Summary |
| Fields inherited from class com.jme.scene.Controller |
RT_CLAMP, RT_CYCLE, RT_WRAP |
| Constructor Summary | |
LightStateController(Spatial par,
LightStateCreator lightCreator)
Creates a new instance of LightStateController. |
|
LightStateController(Spatial par,
LightStateCreator lightCreator,
float updateInt,
int timeSlot)
Creates a new instance of LightStateController The spatial passed to the function is required to have a LightState attached. |
|
| Method Summary | |
float |
getUpdateInterval()
Returns the Update Interval. |
void |
setUpdateInterval(float interval)
Sets the Update Interval. |
void |
update(float time)
Update is called internally. |
| Methods inherited from class com.jme.scene.Controller |
getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, putClone, setActive, setMaxTime, setMinTime, setRepeatType, setSpeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LightStateController(Spatial par,
LightStateCreator lightCreator)
public LightStateController(Spatial par,
LightStateCreator lightCreator,
float updateInt,
int timeSlot)
| Method Detail |
public void setUpdateInterval(float interval)
public float getUpdateInterval()
public void update(float time)
update in class Controllertime - The time in seconds between the last call to update and the
current one
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||