|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Material
Interface describing the material properties of a SwoglComponent
.
All methods will store copies of the given arguments or return copies
of the internal state, respectively.
Method Summary | |
---|---|
javax.vecmath.Color4f |
getAmbientColor()
Returns the ambient color of this Material |
javax.vecmath.Color4f |
getDiffuseColor()
Returns the diffuse color of this Material |
javax.vecmath.Color4f |
getEmissionColor()
Returns the emission color of this Material |
float |
getShininess()
Returns the shininess of this Material . |
javax.vecmath.Color4f |
getSpecularColor()
Returns the specular color of this Material |
void |
setAmbientColor(float r,
float g,
float b,
float a)
Set the ambient color of this Material |
void |
setAmbientColor(javax.vecmath.Tuple4f color)
Set the ambient color of this Material |
void |
setDiffuseColor(float r,
float g,
float b,
float a)
Set the diffuse color of this Material |
void |
setDiffuseColor(javax.vecmath.Tuple4f color)
Set the diffuse color of this Material |
void |
setEmissionColor(float r,
float g,
float b,
float a)
Set the emission color of this Material |
void |
setEmissionColor(javax.vecmath.Tuple4f color)
Set the emission color of this Material |
void |
setShininess(float shininess)
Set the shininess of this Material . |
void |
setSpecularColor(float r,
float g,
float b,
float a)
Set the specular color of this Material |
void |
setSpecularColor(javax.vecmath.Tuple4f color)
Set the specular color of this Material |
Method Detail |
---|
void setAmbientColor(javax.vecmath.Tuple4f color)
Material
color
- The ambient colorvoid setAmbientColor(float r, float g, float b, float a)
Material
r
- The red componentg
- The green componentb
- The blue componenta
- The alpha componentjavax.vecmath.Color4f getAmbientColor()
Material
void setDiffuseColor(javax.vecmath.Tuple4f color)
Material
color
- The diffuse colorvoid setDiffuseColor(float r, float g, float b, float a)
Material
r
- The red componentg
- The green componentb
- The blue componenta
- The alpha componentjavax.vecmath.Color4f getDiffuseColor()
Material
void setSpecularColor(javax.vecmath.Tuple4f color)
Material
color
- The specular colorvoid setSpecularColor(float r, float g, float b, float a)
Material
r
- The red componentg
- The green componentb
- The blue componenta
- The alpha componentjavax.vecmath.Color4f getSpecularColor()
Material
void setEmissionColor(javax.vecmath.Tuple4f color)
Material
color
- The emission colorvoid setEmissionColor(float r, float g, float b, float a)
Material
r
- The red componentg
- The green componentb
- The blue componenta
- The alpha componentjavax.vecmath.Color4f getEmissionColor()
Material
void setShininess(float shininess)
Material
. The given value
will be clamped to the range [0,128]
shininess
- The shininessfloat getShininess()
Material
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |