public class HomeMaterial extends Object implements Serializable
Constructor and Description |
---|
HomeMaterial(String name,
Integer color,
HomeTexture texture,
Float shininess)
Creates a material instance from parameters.
|
HomeMaterial(String name,
String key,
Integer color,
HomeTexture texture,
Float shininess)
Creates a material instance from parameters.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getColor()
Returns the color of this material.
|
String |
getKey()
Returns the key of this material.
|
String |
getName()
Returns the name of this material.
|
Float |
getShininess()
Returns the shininess of this material.
|
HomeTexture |
getTexture()
Returns the texture of this material.
|
public HomeMaterial(String name, Integer color, HomeTexture texture, Float shininess)
public HomeMaterial(String name, String key, Integer color, HomeTexture texture, Float shininess)
public String getName()
null
if material has no name.public String getKey()
null
, this key should be used
as the unique identifier to find this material among the ones available on a model,
rather than the name of this material.null
if material has no key.public Integer getColor()
null
if material color is unchanged.public HomeTexture getTexture()
null
if material texture is unchanged.public Float getShininess()
null
if material shininess is unchanged.
© Copyrights 2006-2017 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License