maspack.render
Class GLLight

java.lang.Object
  extended by maspack.render.GLLight

public class GLLight
extends java.lang.Object


Nested Class Summary
static class GLLight.LightSpace
           
 
Constructor Summary
GLLight()
           
GLLight(float[] iposition, float[] iambient, float[] idiffuse, float[] ispecular)
           
 
Method Summary
 float[] getAmbient()
           
 float[] getDiffuse()
           
 int getId()
           
 GLLight.LightSpace getLightSpace()
           
 float[] getPosition()
           
 float[] getSpecular()
           
 boolean isEnabled()
           
 boolean isEnabled(javax.media.opengl.GL2 gl)
           
 void setAmbient(float x, float y, float z, float w)
           
 void setDiffuse(float x, float y, float z, float w)
           
 void setEnabled(boolean set)
           
 void setEnabled(javax.media.opengl.GL2 gl, boolean set)
           
 void setId(int id)
           
 void setLightSpace(GLLight.LightSpace lightSpace)
           
 void setPosition(float x, float y, float z, float w)
           
 void setSpecular(float x, float y, float z, float w)
           
 void setupLight(javax.media.opengl.GL2 gl)
           
 void setupLight(int lightConstant, javax.media.opengl.GL2 gl)
           
 void setupLight(int lightConstant, javax.media.opengl.GL2 gl, GLLight.LightSpace lightSpace)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLLight

public GLLight()

GLLight

public GLLight(float[] iposition,
               float[] iambient,
               float[] idiffuse,
               float[] ispecular)
Method Detail

setupLight

public void setupLight(javax.media.opengl.GL2 gl)

setupLight

public void setupLight(int lightConstant,
                       javax.media.opengl.GL2 gl)

setupLight

public void setupLight(int lightConstant,
                       javax.media.opengl.GL2 gl,
                       GLLight.LightSpace lightSpace)

setPosition

public void setPosition(float x,
                        float y,
                        float z,
                        float w)

setAmbient

public void setAmbient(float x,
                       float y,
                       float z,
                       float w)

setDiffuse

public void setDiffuse(float x,
                       float y,
                       float z,
                       float w)

setSpecular

public void setSpecular(float x,
                        float y,
                        float z,
                        float w)

getPosition

public float[] getPosition()

getAmbient

public float[] getAmbient()

getSpecular

public float[] getSpecular()

getDiffuse

public float[] getDiffuse()

setLightSpace

public void setLightSpace(GLLight.LightSpace lightSpace)

getLightSpace

public GLLight.LightSpace getLightSpace()

setId

public void setId(int id)

getId

public int getId()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean set)

isEnabled

public boolean isEnabled(javax.media.opengl.GL2 gl)

setEnabled

public void setEnabled(javax.media.opengl.GL2 gl,
                       boolean set)