public class G2DLightManager extends java.lang.Object implements LightManager
DEFAULT_LIGHTNING_STATUS| Constructor and Description |
|---|
G2DLightManager(G2DDrawingTools drawingTools)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getCameraPosition()
Returns the camera position used to perform the lighting.
|
Light |
getLight(int i)
Return the i-th light.
|
int |
getLightNumber()
Return the number of available light.
|
Material |
getMaterial() |
float[] |
getNormalTransform()
Returns the normal transformation as a float array.
|
float[] |
getVertexTransform()
Returns the vertex transformation as a float array.
|
boolean |
isLightningEnable()
Return the lightning status.
|
void |
setLightningEnable(boolean isLightningEnable)
Set the lightning status.
|
void |
setMaterial(Material material)
Set the material properties used for lighting.
|
public G2DLightManager(G2DDrawingTools drawingTools)
drawingTools - the drawing tools.public int getLightNumber()
LightManagergetLightNumber in interface LightManagerpublic Light getLight(int i)
LightManagernull is returned if i is not a valid index.getLight in interface LightManageri - the given index.public void setLightningEnable(boolean isLightningEnable)
LightManagersetLightningEnable in interface LightManagerisLightningEnable - the new lightning status.public boolean isLightningEnable()
LightManagerisLightningEnable in interface LightManagerpublic void setMaterial(Material material)
LightManagersetMaterial in interface LightManagermaterial - the material.public Material getMaterial()
public Vector3f getCameraPosition()
public float[] getVertexTransform()
public float[] getNormalTransform()