Class LevelLight
java.lang.Object
com.codename1.gaming.level.LevelLight
A serializable directional light authored in a 3D
GameLevel: a direction, a
diffuse #getColor() and an #getAmbientColor(). A GameSceneView copies the
level's primary light onto the GameView's shared com.codename1.gpu.Light.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetColor()floatfloatfloatsetAmbientColor(int ambientColor) setColor(int color) setDirection(float x, float y, float z)
-
Constructor Details
-
LevelLight
public LevelLight() -
LevelLight
public LevelLight(float dirX, float dirY, float dirZ, int color, int ambientColor)
-
-
Method Details
-
getDirectionX
public float getDirectionX() -
getDirectionY
public float getDirectionY() -
getDirectionZ
public float getDirectionZ() -
setDirection
-
getColor
public int getColor() -
setColor
-
getAmbientColor
public int getAmbientColor() -
setAmbientColor
-