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

Class dnx.ice.SpotLight

java.lang.Object
   |
   +----dnx.ice.Light
           |
           +----dnx.ice.PointLight
                   |
                   +----dnx.ice.SpotLight

public class SpotLight
extends PointLight
Spotlight -- has properties of point and directional light sources.

Constructor Index

 o SpotLight()
Create a spotlight.
 o SpotLight(float, float, float)
Create a spotlight which point in the direction from the origin to the point (x, y, z).

Method Index

 o getDirection(Vector3)
 o setBeam(float, float)
Set the cutoff angle and the dropoff rate.
 o setDirection(float, float, float)
Set the spotlight's direction.
 o setDirection(Vector3)

Constructors

 o SpotLight
  public SpotLight()
Create a spotlight. The new light is positioned at the origin and points in the positive Z direction. The cutoff angle is 30 degrees and the dropoff rate is 1.0.
 o SpotLight
  public SpotLight(float x,
                   float y,
                   float z)
Create a spotlight which point in the direction from the origin to the point (x, y, z). The new spotlight otherwise has the same properties as one created with the SpotLight() contstructor.

Methods

 o setDirection
  public void setDirection(float x,
                           float y,
                           float z)
Set the spotlight's direction.
 o setDirection
  public void setDirection(Vector3 direction)
 o getDirection
  public void getDirection(Vector3 v)
 o setBeam
  public void setBeam(float cutoffAngle,
                      float beamWidth)
Set the cutoff angle and the dropoff rate. The cutoff angle defines the cone which the spotlight illuminates. The intensity of the beam is constant inside the cone of angle beamWidth; it drops of linearly to zero at the cutoff angle. Angles are clamped to lie within [ 0, PI/2 ]

All Packages  Class Hierarchy  This Package  Previous  Next  Index