public enum LightAttenuationFunction extends java.lang.Enum<LightAttenuationFunction>
| Enum Constant and Description |
|---|
exponential
Exponential attenuationFactors (same as default OpenGL)
|
linear
Linear attenuationFactors
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAttenuationAt(float distance,
float[] attenuationFactors) |
float |
getDistanceAtAttenuation(float attenuation,
float[] attenuationFactors) |
static LightAttenuationFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LightAttenuationFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LightAttenuationFunction linear
public static final LightAttenuationFunction exponential
public static LightAttenuationFunction[] values()
for (LightAttenuationFunction c : LightAttenuationFunction.values()) System.out.println(c);
public static LightAttenuationFunction 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 float getAttenuationAt(float distance,
float[] attenuationFactors)
public float getDistanceAtAttenuation(float attenuation,
float[] attenuationFactors)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com