java.lang.Object
org.jagatoo.loaders.models.obj.OBJMaterial
Abstractly stores an OBJ loaded material.
- Author:
- Marvin Froehlich (aka Qudus)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]
float[]
getColor()
float[]
getName()
float
float[]
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
(String textureName) Sets this Material's texture name.
-
Constructor Details
-
OBJMaterial
-
-
Method Details
-
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
Sets this Material's texture name.- Parameters:
textureName
-
-
getTextureName
- Returns:
- this Material's texture name.
-