Package com.jme3.scene.plugins
Class MTLLoader
java.lang.Object
com.jme3.scene.plugins.MTLLoader
- All Implemented Interfaces:
- AssetLoader
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected floatprotected Textureprotected ColorRGBAprotected AssetManagerprotected ColorRGBAprotected Textureprotected booleanprotected booleanprotected Stringprotected AssetKeyprotected MaterialListprotected Stringprotected Textureprotected Scannerprotected booleanprotected floatprotected ColorRGBAprotected Textureprotected boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
shininessprotected float shininess
- 
shadelessprotected boolean shadeless
- 
matName
- 
alphaprotected float alpha
- 
transparentprotected boolean transparent
- 
disallowAmbientprotected boolean disallowAmbient
- 
disallowSpecularprotected boolean disallowSpecular
 
- 
- 
Constructor Details- 
MTLLoaderpublic MTLLoader()
 
- 
- 
Method Details- 
resetpublic void reset()
- 
readColor
- 
nextStatement
- 
skipLineprotected boolean skipLine()
- 
resetMaterialprotected void resetMaterial()
- 
createMaterialprotected void createMaterial()
- 
startMaterial
- 
loadTexture
- 
readLineprotected boolean readLine()
- 
loadDescription copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
- loadin interface- AssetLoader
- Parameters:
- info- the located asset
- Returns:
- An object representing the resource.
- Throws:
- IOException- If an I/O error occurs while loading
 
 
-