Module dxf

Class OBJMaterial

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

public class OBJMaterial extends Object
Abstractly stores an OBJ loaded material.
Author:
Marvin Froehlich (aka Qudus)
  • Constructor Details

    • OBJMaterial

      public OBJMaterial(String name)
  • Method Details

    • getName

      public 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(String textureName)
      Sets this Material's texture name.
      Parameters:
      textureName -
    • getTextureName

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