- java.lang.Object
-
- be.yildizgames.common.util.BaseRegisterable
-
- be.yildizgames.module.graphic.light.Light
-
- be.yildizgames.module.graphic.light.PointLight
-
- All Implemented Interfaces:
be.yildizgames.common.gameobject.Deletable,be.yildizgames.common.util.Registerable
public abstract class PointLight extends Light
A PointLight is a light emitting in all direction.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPointLight(String name, be.yildizgames.common.geometry.Point3D lightPosition)Full constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidsetAttenuation(float range, float constant, float linear, float quadratic)Set the light attenuation factor.abstract voidsetColor(be.yildizgames.module.color.Color color)Set the light color.abstract voidsetDebug()Enable debug display.StringtoString()-
Methods inherited from class be.yildizgames.module.graphic.light.Light
attachLensFlare, delete, deleteImpl, getLensFlareList, getPosition, move, setPosition, setPositionImpl
-
-
-
-
Constructor Detail
-
PointLight
protected PointLight(String name, be.yildizgames.common.geometry.Point3D lightPosition)
Full constructor.- Parameters:
name- Light name, must be unique.lightPosition- Light position.
-
-
Method Detail
-
setColor
public abstract void setColor(be.yildizgames.module.color.Color color)
Set the light color.- Parameters:
color- Color to set.
-
setAttenuation
public abstract void setAttenuation(float range, float constant, float linear, float quadratic)Set the light attenuation factor.- Parameters:
range- Light range.constant- Constant value.linear- Linear value.quadratic- Quadratic value.
-
toString
public final String toString()
- Overrides:
toStringin classbe.yildizgames.common.util.BaseRegisterable- Returns:
- Light name.
-
setDebug
public abstract void setDebug()
Enable debug display.
-
-