jjdh.opengl.core.light
Class SpotLight
java.lang.Object
jjdh.opengl.core.light.AbstractLightSource
jjdh.opengl.core.light.PositionalLight
jjdh.opengl.core.light.SpotLight
- All Implemented Interfaces:
- Comparable<AbstractLightSource>, GLSwitchable
public class SpotLight
- extends PositionalLight
Method Summary |
void |
applyAll(javax.media.opengl.GL gl)
Has to be updated only if there are changes of the values. |
protected void |
applyDirection(javax.media.opengl.GL gl)
|
void |
applyPositionAndDirection(javax.media.opengl.GL gl)
Has to be updated at every frame. |
void |
applySpot(javax.media.opengl.GL gl)
|
void |
setDirection(float x,
float y,
float z)
|
void |
setSpot(float cutoff,
float exponent)
|
direction
protected float[] direction
cutoff
protected float cutoff
exponent
protected float exponent
SpotLight
public SpotLight()
setDirection
public final void setDirection(float x,
float y,
float z)
setSpot
public void setSpot(float cutoff,
float exponent)
applyDirection
protected void applyDirection(javax.media.opengl.GL gl)
applySpot
public void applySpot(javax.media.opengl.GL gl)
applyAll
public void applyAll(javax.media.opengl.GL gl)
- Description copied from class:
AbstractLightSource
- Has to be updated only if there are changes of the values.
- Overrides:
applyAll
in class PositionalLight
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 PositionalLight
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.