|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Controller
com.jme.light.LightStateController
@Deprecated public class LightStateController
The LightStateController sorts the Lights 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.
This class should not be used anymore, use Node.sortLights() instead.
jmetest.util.TestManyLights,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.jme.scene.Controller |
|---|
RT_CLAMP, RT_CYCLE, RT_WRAP |
| Constructor Summary | |
|---|---|
LightStateController()
Deprecated. |
|
LightStateController(Spatial par,
LightManagement manager)
Deprecated. Creates a new instance of LightStateController. |
|
LightStateController(Spatial par,
LightManagement manager,
float updateInt,
int timeSlot)
Deprecated. Creates a new instance of LightStateController The spatial passed to the function is required to have a LightState attached. |
|
| Method Summary | |
|---|---|
float |
getUpdateInterval()
Deprecated. Returns the Update Interval. |
void |
read(JMEImporter e)
Deprecated. |
void |
setUpdateInterval(float interval)
Deprecated. Sets the Update Interval. |
void |
update(float time)
Deprecated. Update is called internally. |
void |
write(JMEExporter e)
Deprecated. |
| Methods inherited from class com.jme.scene.Controller |
|---|
getClassTag, getControllerValues, getMaxTime, getMinTime, getRepeatType, getSpeed, isActive, setActive, setControllerValues, 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()
public LightStateController(Spatial par,
LightManagement manager)
public LightStateController(Spatial par,
LightManagement manager,
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
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablewrite in class Controllerjava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savableread in class Controllerjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||