jjdh API

jjdh.opengl.core.light
Class DirectionalLight

java.lang.Object
  extended by jjdh.opengl.core.light.AbstractLightSource
      extended by jjdh.opengl.core.light.DirectionalLight
All Implemented Interfaces:
Comparable<AbstractLightSource>, GLSwitchable

public class DirectionalLight
extends AbstractLightSource


Field Summary
protected  float[] direction
           
 
Fields inherited from class jjdh.opengl.core.light.AbstractLightSource
glNumber, light
 
Constructor Summary
DirectionalLight()
           
 
Method Summary
protected  void applyDirection(javax.media.opengl.GL gl)
           
 void applyPositionAndDirection(javax.media.opengl.GL gl)
          Has to be updated at every frame.
 void setDirection(float x, float y, float z)
           
 
Methods inherited from class jjdh.opengl.core.light.AbstractLightSource
applyAll, applyLight, bindTo, compareTo, disable, enable, equals, getLight, setLight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

direction

protected float[] direction
Constructor Detail

DirectionalLight

public DirectionalLight()
Method Detail

setDirection

public final void setDirection(float x,
                               float y,
                               float z)

applyDirection

protected void applyDirection(javax.media.opengl.GL gl)

applyPositionAndDirection

public void applyPositionAndDirection(javax.media.opengl.GL gl)
Description copied from class: AbstractLightSource
Has to be updated at every frame.

Overrides:
applyPositionAndDirection in class AbstractLightSource

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.