|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.scilab.forge.scirenderer.implementation.jogl.lightning.JoGLLight
public class JoGLLight
| Constructor Summary | |
|---|---|
JoGLLight(GL2 gl,
int index)
Default constructor. |
|
| Method Summary | |
|---|---|
Color |
getAmbientColor()
Return the ambient color of this light; |
Color |
getDiffuseColor()
Return the diffuse color of this light; |
int |
getIndex()
Return the light index. |
Vector3d |
getPosition()
Return the light position. |
Color |
getSpecularColor()
Return the specular color of this light; |
float |
getSpotAngle()
Return the spot angle. |
Vector3d |
getSpotDirection()
Return the spot direction. |
boolean |
isEnable()
Return the status of this light. |
void |
reload(GL2 gl)
Reload this light. |
void |
setAmbientColor(Color color)
Set the ambient color of this light. |
void |
setDiffuseColor(Color color)
Set the diffuse color of this light. |
void |
setEnable(boolean enable)
Set the status of this light. |
void |
setPosition(Vector3d position)
Set the light position. |
void |
setSpecularColor(Color color)
Set the specular color of this light. |
void |
setSpotAngle(float angle)
Set the spot angle. |
void |
setSpotDirection(Vector3d spotDirection)
Set the spot direction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoGLLight(GL2 gl,
int index)
gl - the gl context.index - the light index.| Method Detail |
|---|
public void reload(GL2 gl)
gl - the gl context.public boolean isEnable()
Light
isEnable in interface Lightpublic void setEnable(boolean enable)
Light
setEnable in interface Lightenable - the new status of this light.public Color getAmbientColor()
Light
getAmbientColor in interface Lightpublic void setAmbientColor(Color color)
Light
setAmbientColor in interface Lightcolor - the new ambient color of this light.public Color getDiffuseColor()
Light
getDiffuseColor in interface Lightpublic void setDiffuseColor(Color color)
Light
setDiffuseColor in interface Lightcolor - the new diffuse color of this light.public Color getSpecularColor()
Light
getSpecularColor in interface Lightpublic void setSpecularColor(Color color)
Light
setSpecularColor in interface Lightcolor - the new specular color of this light.public Vector3d getPosition()
Light
getPosition in interface Lightpublic void setPosition(Vector3d position)
Light
setPosition in interface Lightposition - the new position.public Vector3d getSpotDirection()
Light
getSpotDirection in interface Lightpublic void setSpotDirection(Vector3d spotDirection)
Light
setSpotDirection in interface LightspotDirection - the new spot direction.public float getSpotAngle()
Light
getSpotAngle in interface Lightpublic void setSpotAngle(float angle)
Light
setSpotAngle in interface Lightangle - the new spot angle.public int getIndex()
Light
getIndex in interface Light
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||