de.rico.engine.effect.light
Interface DirectionalLightIface

All Superinterfaces:
LightIface
All Known Implementing Classes:
DirectionalLight

public interface DirectionalLightIface
extends LightIface

This inbterface defines the methods that need to be implemented by an directional light.

Author:
Frank Bruns

Method Summary
 Point3D getDirection()
          Returns the direction as a new Point3D object.
 void setDirection(float x, float y, float z)
          Set the direction of the light.
 void setDirection(Point3D dir)
          Sets the direction of the light.
 
Methods inherited from interface de.rico.engine.effect.light.LightIface
bind, destroy, release, setEnabled
 

Method Detail

setDirection

void setDirection(float x,
                  float y,
                  float z)
Set the direction of the light. The specified parameters get normalized.

Parameters:
x - x direction
y - y direction
z - z direction

setDirection

void setDirection(Point3D dir)
Sets the direction of the light. The specified parameter gets normalized.

Parameters:
dir - light direction

getDirection

Point3D getDirection()
Returns the direction as a new Point3D object.

Returns:
direction as a new Point3D object