jjdh API

jjdh.opengl.attributes
Class Light

java.lang.Object
  extended by jjdh.opengl.attributes.Light

public class Light
extends Object


Field Summary
protected  float[] ambient
           
protected  float[] diffuse
           
protected  float[] specular
           
 
Constructor Summary
Light()
           
Light(Light l)
           
 
Method Summary
 void applyAsFace(javax.media.opengl.GL gl, int face)
           
 void applyAsLightSource(javax.media.opengl.GL gl, int glNumber)
           
 Light clone()
           
 float[] getAmbient()
           
 void setAmbient(float r, float g, float b, float a)
           
 void setAmbientAndDiffuse(float r, float g, float b, float a)
           
 void setDiffuse(float r, float g, float b, float a)
           
 void setSpecular(float[] spec)
           
 void setSpecular(float r, float g, float b, float a)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ambient

protected float[] ambient

diffuse

protected float[] diffuse

specular

protected float[] specular
Constructor Detail

Light

public Light()

Light

public Light(Light l)
Method Detail

clone

public Light clone()
Overrides:
clone in class Object

setAmbient

public void setAmbient(float r,
                       float g,
                       float b,
                       float a)

setDiffuse

public void setDiffuse(float r,
                       float g,
                       float b,
                       float a)

setSpecular

public void setSpecular(float r,
                        float g,
                        float b,
                        float a)

setAmbientAndDiffuse

public void setAmbientAndDiffuse(float r,
                                 float g,
                                 float b,
                                 float a)

getAmbient

public float[] getAmbient()

applyAsFace

public void applyAsFace(javax.media.opengl.GL gl,
                        int face)

applyAsLightSource

public void applyAsLightSource(javax.media.opengl.GL gl,
                               int glNumber)

setSpecular

public void setSpecular(float[] spec)

jjdh API

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