public static enum Light.Type extends java.lang.Enum<Light.Type>
Enum Constant and Description |
---|
Ambient
Ambient light
|
Directional
Directional light
|
Point
Point light
|
Probe
Light probe
|
Spot
Spot light.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns an index for the light type
|
static Light.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Light.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Light.Type Directional
DirectionalLight
public static final Light.Type Point
PointLight
public static final Light.Type Spot
SpotLight
public static final Light.Type Ambient
AmbientLight
public static final Light.Type Probe
LightProbe
public static Light.Type[] values()
for (Light.Type c : Light.Type.values()) System.out.println(c);
public static Light.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()