Package com.jme3.scene.plugins
Class MTLLoader
java.lang.Object
com.jme3.scene.plugins.MTLLoader
- All Implemented Interfaces:
 AssetLoader
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected Textureprotected ColorRGBAprotected AssetManagerprotected ColorRGBAprotected Textureprotected booleanprotected booleanprotected Stringprotected AssetKeyprotected MaterialListprotected Stringprotected Textureprotected Scannerprotected booleanprotected floatprotected ColorRGBAprotected Textureprotected boolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidLoads asset from the given input stream, parsing it into an application-usable object.protected TextureloadTexture(String path) protected Stringprotected ColorRGBAprotected booleanreadLine()voidreset()protected voidprotected booleanskipLine()protected voidstartMaterial(String name)  
- 
Field Details
- 
scan
 - 
matList
 - 
assetManager
 - 
folderName
 - 
key
 - 
diffuseMap
 - 
normalMap
 - 
specularMap
 - 
alphaMap
 - 
ambient
 - 
diffuse
 - 
specular
 - 
shininess
protected float shininess - 
shadeless
protected boolean shadeless - 
matName
 - 
alpha
protected float alpha - 
transparent
protected boolean transparent - 
disallowAmbient
protected boolean disallowAmbient - 
disallowSpecular
protected boolean disallowSpecular 
 - 
 - 
Constructor Details
- 
MTLLoader
public MTLLoader() 
 - 
 - 
Method Details
- 
reset
public void reset() - 
readColor
 - 
nextStatement
 - 
skipLine
protected boolean skipLine() - 
resetMaterial
protected void resetMaterial() - 
createMaterial
protected void createMaterial() - 
startMaterial
 - 
loadTexture
 - 
readLine
protected boolean readLine() - 
load
Description copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
 loadin interfaceAssetLoader- Parameters:
 info- the located asset- Returns:
 - An object representing the resource.
 - Throws:
 IOException- If an I/O error occurs while loading
 
 -