|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.engine.effect.light.ogllight.AbstractLight
de.rico.engine.effect.light.ogllight.DirectionalLight
public class DirectionalLight
This class represents a directional OpenGL light.
| Constructor Summary | |
|---|---|
DirectionalLight(int lightNumber)
Creates a directional light with the specified light number |
|
| Method Summary | |
|---|---|
void |
bind(javax.media.opengl.GL gl)
Starts using the light. |
Point3D |
getDirection()
Returns the direction as a new Point3D object. |
float[] |
getDirectionArray()
Returns the direction of the light in its array representation. |
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 class de.rico.engine.effect.light.ogllight.AbstractLight |
|---|
destroy, getAmbient, getDiffuse, getLightNr, getLightNrOGLConst, getSpecular, isEnabled, release, setAmbient, setAmbient, setDiffuse, setDiffuse, setEnabled, setSpecular, setSpecular |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.rico.engine.effect.light.LightIface |
|---|
destroy, release, setEnabled |
| Constructor Detail |
|---|
public DirectionalLight(int lightNumber)
lightNumber - light number from 0 to 7| Method Detail |
|---|
public void bind(javax.media.opengl.GL gl)
LightIface
bind in interface LightIfacebind in class AbstractLight
public void setDirection(float x,
float y,
float z)
DirectionalLightIface
setDirection in interface DirectionalLightIfacex - x directiony - y directionz - z directionpublic void setDirection(Point3D dir)
DirectionalLightIface
setDirection in interface DirectionalLightIfacedir - light directionpublic float[] getDirectionArray()
public Point3D getDirection()
DirectionalLightIface
getDirection in interface DirectionalLightIface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||