org.jagatoo.loaders.models.obj
Class OBJMaterial

java.lang.Object
  extended by org.jagatoo.loaders.models.obj.OBJMaterial

public class OBJMaterial
extends java.lang.Object

Abstractly stores an OBJ loaded material.


Constructor Summary
OBJMaterial(java.lang.String name)
           
 
Method Summary
 float[] getAmbientColor()
           
 float[] getColor()
           
 float[] getDiffuseColor()
           
 java.lang.String getName()
           
 float getShininess()
           
 float[] getSpecularColor()
           
 java.lang.String getTextureName()
           
 void setAmbientColor(float[] color)
          Sets this material's ambient color.
 void setColor(float[] color)
          Sets this material's color.
 void setDiffuseColor(float[] color)
          Sets this material's diffuse color.
 void setShininess(float shininess)
          Sets this Material's shininess.
 void setSpecularColor(float[] color)
          Sets this material's specular color.
 void setTextureName(java.lang.String textureName)
          Sets this Material's texture name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OBJMaterial

public OBJMaterial(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Returns:
this Material's name

setColor

public void setColor(float[] color)
Sets this material's color.

Parameters:
color -

getColor

public float[] getColor()
Returns:
this material's color.

setAmbientColor

public void setAmbientColor(float[] color)
Sets this material's ambient color.

Parameters:
color -

getAmbientColor

public float[] getAmbientColor()
Returns:
this material's color.

setDiffuseColor

public void setDiffuseColor(float[] color)
Sets this material's diffuse color.

Parameters:
color -

getDiffuseColor

public float[] getDiffuseColor()
Returns:
this material's diffuse color.

setSpecularColor

public void setSpecularColor(float[] color)
Sets this material's specular color.

Parameters:
color -

getSpecularColor

public float[] getSpecularColor()
Returns:
this material's specular color.

setShininess

public void setShininess(float shininess)
Sets this Material's shininess.

Parameters:
shininess -

getShininess

public float getShininess()
Returns:
this Material's shininess.

setTextureName

public void setTextureName(java.lang.String textureName)
Sets this Material's texture name.

Parameters:
textureName -

getTextureName

public java.lang.String getTextureName()
Returns:
this Material's texture name.