Class dnx.ice.DirectionalLight
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.ice.DirectionalLight

java.lang.Object
   |
   +----dnx.ice.Light
           |
           +----dnx.ice.DirectionalLight

public class DirectionalLight
extends Light
Directional light source.

Constructor Index

 o DirectionalLight()
Create a directional light with white specular and diffuse components, no ambient component, and which points in the negative Z direction.
 o DirectionalLight(float, float, float)
Create a light with default colors which poins in the direction from the origin to the point (x, y, z).
 o DirectionalLight(Vector3)
Create a light with default colors which points in a specified direction.

Method Index

 o getDirection(Vector3)
 o setDirection(float, float, float)
Change the direction of the light source to point in the direction from the origin to point (x, y, z).
 o setDirection(Vector3)
Change the direction of the light source to point in the direction from the origin to point (x, y, z).

Constructors

 o DirectionalLight
  public DirectionalLight()
Create a directional light with white specular and diffuse components, no ambient component, and which points in the negative Z direction.
 o DirectionalLight
  public DirectionalLight(float x,
                          float y,
                          float z)
Create a light with default colors which poins in the direction from the origin to the point (x, y, z).
 o DirectionalLight
  public DirectionalLight(Vector3 direction)
Create a light with default colors which points in a specified direction.

Methods

 o setDirection
  public void setDirection(float x,
                           float y,
                           float z)
Change the direction of the light source to point in the direction from the origin to point (x, y, z).
 o setDirection
  public void setDirection(Vector3 direction)
Change the direction of the light source to point in the direction from the origin to point (x, y, z).
 o getDirection
  public void getDirection(Vector3 v)

All Packages  Class Hierarchy  This Package  Previous  Next  Index