com.jme.light
Class AmbientLight

java.lang.Object
  extended bycom.jme.light.Light
      extended bycom.jme.light.AmbientLight
All Implemented Interfaces:
java.io.Serializable

public class AmbientLight
extends Light

AmbientLight defines the natural light of a scene. This is light that affects all color values of the scene.

Version:
$Id: AmbientLight.java,v 1.6 2004/09/14 21:52:18 mojomonkey Exp $
Author:
Mark Powell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.light.Light
LT_AMBIENT, LT_DIRECTIONAL, LT_POINT, LT_SPOT
 
Constructor Summary
AmbientLight()
          Constructor instantiates a new AmbientLight object.
 
Method Summary
 int getType()
          getType returns the type of this light (LT_AMBIENT).
 void setEnabled(boolean enabled)
          This function is ignored/useless in AmbientLight.
 
Methods inherited from class com.jme.light.Light
getAmbient, getConstant, getDiffuse, getLinear, getQuadratic, getSpecular, isAttenuate, isEnabled, setAmbient, setAttenuate, setConstant, setDiffuse, setLinear, setQuadratic, setSpecular
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmbientLight

public AmbientLight()
Constructor instantiates a new AmbientLight object. This sets the color values to white.

Method Detail

getType

public int getType()
getType returns the type of this light (LT_AMBIENT).

Specified by:
getType in class Light
Returns:
the type of light that has been created.
See Also:
Light.getType()

setEnabled

public void setEnabled(boolean enabled)
This function is ignored/useless in AmbientLight.

Overrides:
setEnabled in class Light
Parameters:
enabled - Ignored.