|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LightSetup
This interface describes the lighting setup in a SwoglApplication
.
It consists of a global ambient light and a collection of Light
s.
Method Summary | |
---|---|
void |
addLight(Light light)
Add the given Light to this setup. |
void |
addLightSetupListener(LightSetupListener lightSetupListener)
Add the given LightSetupListener to be informed about
changes in this LightSetup |
void |
clear()
Removes all lights from this LightSetup |
javax.vecmath.Color4f |
getAmbient()
Returns the global ambient light color |
java.util.List<Light> |
getLights()
Returns an unmodifiable copy of the current list of lights contained in this setup. |
int |
getMaximumNumberOfLights()
Returns the maximum number of Light s that
may be contained in this setup |
void |
removeLight(int index)
Removes the Light with the given Index from
this setup. |
void |
removeLight(Light light)
Removes the given Light from this setup. |
void |
removeLightSetupListener(LightSetupListener lightSetupListener)
Remove the given LightSetupListener |
void |
setAmbient(javax.vecmath.Tuple4f color)
Set the global ambient light color |
Method Detail |
---|
javax.vecmath.Color4f getAmbient()
void setAmbient(javax.vecmath.Tuple4f color)
color
- The global ambient light colorint getMaximumNumberOfLights()
Light
s that
may be contained in this setup
void addLight(Light light)
light
- The light to add
java.lang.IllegalStateException
- If the maximum number
of lights is exceeded, as specified by
getMaximumNumberOfLights()
void removeLight(int index)
Light
with the given Index from
this setup.
index
- The index of the Light to remove.void removeLight(Light light)
Light
from this setup.
light
- The Light to remove.void clear()
java.util.List<Light> getLights()
void addLightSetupListener(LightSetupListener lightSetupListener)
LightSetupListener
to be informed about
changes in this LightSetup
lightSetupListener
- The listener to addvoid removeLightSetupListener(LightSetupListener lightSetupListener)
LightSetupListener
lightSetupListener
- The listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |