|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimogl.material.Material
public class Material
This class is used to represent materials
Constructor Summary | |
---|---|
Material(float red,
float green,
float blue,
float alpha)
Creates a new Material object with the specified color values |
Method Summary | |
---|---|
float[] |
getMaterialColorAmbDiff()
Returns the materials ambient and diffuse RGBA color, which have the same values |
float[] |
getMaterialColorEmission()
Returns the emission material RGBA color |
float[] |
getMaterialColorSpecular()
Returns the material's specular RGBA color |
float |
getShininess()
Returns the material's shininess value |
void |
setMaterialColorAmbDiff(float red,
float green,
float blue,
float alpha)
Sets the material's ambient and diffuse color to the specified parameters. |
void |
setMaterialColorEmission(float red,
float green,
float blue,
float alpha)
Sets the material's emission RGBA color |
void |
setMaterialColorSpecular(float red,
float green,
float blue,
float alpha)
Sets the material's specular RGBA color |
void |
setShininess(float value)
Sets the material's shininess. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Material(float red, float green, float blue, float alpha)
red
- amount of redgreen
- amount of greenblue
- amount of bluealpha
- alpha-valueMethod Detail |
---|
public float[] getMaterialColorAmbDiff()
public void setMaterialColorAmbDiff(float red, float green, float blue, float alpha)
red
- amount of redgreen
- amount of greenblue
- amount of bluealpha
- alpha-valuepublic float[] getMaterialColorEmission()
public void setMaterialColorEmission(float red, float green, float blue, float alpha)
red
- amount of redgreen
- amount of greenblue
- amount of bluealpha
- alpha-valuepublic float[] getMaterialColorSpecular()
public void setMaterialColorSpecular(float red, float green, float blue, float alpha)
red
- amount of redgreen
- amount of greenblue
- amount of bluealpha
- alpha-valuepublic float getShininess()
public void setShininess(float value)
value
- shininess factor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |