de.javagl.swogl
Interface Material


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

setAmbientColor

void setAmbientColor(javax.vecmath.Tuple4f color)
Set the ambient color of this Material

Parameters:
color - The ambient color

setAmbientColor

void setAmbientColor(float r,
                     float g,
                     float b,
                     float a)
Set the ambient color of this Material

Parameters:
r - The red component
g - The green component
b - The blue component
a - The alpha component

getAmbientColor

javax.vecmath.Color4f getAmbientColor()
Returns the ambient color of this Material

Returns:
The ambient color

setDiffuseColor

void setDiffuseColor(javax.vecmath.Tuple4f color)
Set the diffuse color of this Material

Parameters:
color - The diffuse color

setDiffuseColor

void setDiffuseColor(float r,
                     float g,
                     float b,
                     float a)
Set the diffuse color of this Material

Parameters:
r - The red component
g - The green component
b - The blue component
a - The alpha component

getDiffuseColor

javax.vecmath.Color4f getDiffuseColor()
Returns the diffuse color of this Material

Returns:
The diffuse color

setSpecularColor

void setSpecularColor(javax.vecmath.Tuple4f color)
Set the specular color of this Material

Parameters:
color - The specular color

setSpecularColor

void setSpecularColor(float r,
                      float g,
                      float b,
                      float a)
Set the specular color of this Material

Parameters:
r - The red component
g - The green component
b - The blue component
a - The alpha component

getSpecularColor

javax.vecmath.Color4f getSpecularColor()
Returns the specular color of this Material

Returns:
The specular color

setEmissionColor

void setEmissionColor(javax.vecmath.Tuple4f color)
Set the emission color of this Material

Parameters:
color - The emission color

setEmissionColor

void setEmissionColor(float r,
                      float g,
                      float b,
                      float a)
Set the emission color of this Material

Parameters:
r - The red component
g - The green component
b - The blue component
a - The alpha component

getEmissionColor

javax.vecmath.Color4f getEmissionColor()
Returns the emission color of this Material

Returns:
The emission color

setShininess

void setShininess(float shininess)
Set the shininess of this Material. The given value will be clamped to the range [0,128]

Parameters:
shininess - The shininess

getShininess

float getShininess()
Returns the shininess of this Material.

Returns:
The shininess