public class MTLLoader extends java.lang.Object implements AssetLoader
Modifier and Type | Field and Description |
---|---|
protected float |
alpha |
protected Texture |
alphaMap |
protected ColorRGBA |
ambient |
protected AssetManager |
assetManager |
protected ColorRGBA |
diffuse |
protected Texture |
diffuseMap |
protected boolean |
disallowAmbient |
protected boolean |
disallowSpecular |
protected java.lang.String |
folderName |
protected AssetKey |
key |
protected MaterialList |
matList |
protected java.lang.String |
matName |
protected Texture |
normalMap |
protected java.util.Scanner |
scan |
protected boolean |
shadeless |
protected float |
shininess |
protected ColorRGBA |
specular |
protected Texture |
specularMap |
protected boolean |
transparent |
Constructor and Description |
---|
MTLLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMaterial() |
java.lang.Object |
load(AssetInfo info)
Loads asset from the given input stream, parsing it into
an application-usable object.
|
protected Texture |
loadTexture(java.lang.String path) |
protected java.lang.String |
nextStatement() |
protected ColorRGBA |
readColor() |
protected boolean |
readLine() |
void |
reset() |
protected void |
resetMaterial() |
protected boolean |
skipLine() |
protected void |
startMaterial(java.lang.String name) |
protected java.util.Scanner scan
protected MaterialList matList
protected AssetManager assetManager
protected java.lang.String folderName
protected AssetKey key
protected Texture diffuseMap
protected Texture normalMap
protected Texture specularMap
protected Texture alphaMap
protected ColorRGBA ambient
protected ColorRGBA diffuse
protected ColorRGBA specular
protected float shininess
protected boolean shadeless
protected java.lang.String matName
protected float alpha
protected boolean transparent
protected boolean disallowAmbient
protected boolean disallowSpecular
public void reset()
protected ColorRGBA readColor()
protected java.lang.String nextStatement()
protected boolean skipLine()
protected void resetMaterial()
protected void createMaterial()
protected void startMaterial(java.lang.String name)
protected Texture loadTexture(java.lang.String path)
protected boolean readLine()
public java.lang.Object load(AssetInfo info) throws java.io.IOException
AssetLoader
load
in interface AssetLoader
info
- the located assetjava.io.IOException
- If an I/O error occurs while loading