|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectviewer.Lights
public class Lights
| Constructor Summary | |
|---|---|
Lights(GLViewer glViewer,
javax.media.opengl.GL gl)
Initializes light arrays and GL enviroment |
|
| Method Summary | |
|---|---|
void |
adjustDiffuse(int b)
Adjusts light_diffuse array up or down by b% |
void |
init()
Sets lights to inital values (hard-coded) |
void |
lightAmbient(float r,
float g,
float b,
float a)
Sets light_ambient to specified values. |
void |
lightDiffuse(float r,
float g,
float b,
float a)
Sets light_diffuse to specified values. |
void |
lightSpec(float r,
float g,
float b,
float a)
Sets light_spec to specified values. |
void |
matsEmission(float r,
float g,
float b,
float a)
Sets mat_emission to specified values. |
void |
matsShine(float s)
Sets mat_shininess to specified values. |
void |
matsSpec(float r,
float g,
float b,
float a)
Sets mat_specular to specified values. |
void |
moveLight(float x,
float y,
float z,
float a)
Sets light_position to specified values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lights(GLViewer glViewer,
javax.media.opengl.GL gl)
glViewer - gl - | Method Detail |
|---|
public void init()
public void moveLight(float x,
float y,
float z,
float a)
x - y - z - a -
public void lightDiffuse(float r,
float g,
float b,
float a)
r - g - b - a -
public void lightAmbient(float r,
float g,
float b,
float a)
r - g - b - a -
public void lightSpec(float r,
float g,
float b,
float a)
r - g - b - a -
public void matsSpec(float r,
float g,
float b,
float a)
r - g - b - a -
public void matsEmission(float r,
float g,
float b,
float a)
r - g - b - a - public void matsShine(float s)
s - public void adjustDiffuse(int b)
b -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||