|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.rico.engine.material.Material
public class Material
This class is used to represent materials
| Constructor Summary | |
|---|---|
Material()
Creates a new material with OpenGL standard material values |
|
Material(Color4f ambient,
Color4f diffuse)
Creates a new material with the specified ambient and diffuse colors |
|
| Method Summary | |
|---|---|
Color4f |
getAmbient()
Returns the material's ambient RGBA color. |
Color4f |
getDiffuse()
Returns the material's diffuse RGBA color. |
Color4f |
getEmission()
Returns the emission material RGBA color |
float |
getShininess()
Returns the material's shininess value |
Color4f |
getSpecular()
Returns the material's specular RGBA color |
void |
setAmbient(Color4f ambient)
Sets the material's ambient color to the specified values |
void |
setAmbient(float red,
float green,
float blue,
float alpha)
Sets the material's ambient color to the specified parameters. |
void |
setDiffuse(Color4f diffuse)
Sets the material's color to the specified values |
void |
setDiffuse(float red,
float green,
float blue,
float alpha)
Sets the material's diffuse color to the specified parameters. |
void |
setEmission(float red,
float green,
float blue,
float alpha)
Sets the material's emission RGBA color |
void |
setShininess(float value)
Sets the material's shininess. |
void |
setSpecular(float red,
float green,
float blue,
float alpha)
Sets the material's specular RGBA color |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Material()
public Material(Color4f ambient,
Color4f diffuse)
ambient - ambient colordiffuse - diffuse color| Method Detail |
|---|
public Color4f getDiffuse()
public void setDiffuse(float red,
float green,
float blue,
float alpha)
red - amount of redgreen - amount of greenblue - amount of bluealpha - alpha-valuepublic void setDiffuse(Color4f diffuse)
diffuse - diffuse colorpublic Color4f getAmbient()
public void setAmbient(float red,
float green,
float blue,
float alpha)
red - amount of redgreen - amount of greenblue - amount of bluealpha - alpha-valuepublic void setAmbient(Color4f ambient)
ambient - float array with ambient colorpublic Color4f getEmission()
public void setEmission(float red,
float green,
float blue,
float alpha)
red - amount of redgreen - amount of greenblue - amount of bluealpha - alpha-valuepublic Color4f getSpecular()
public void setSpecular(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 factorpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||