Package com.jme3.scene.plugins
Class MTLLoader
java.lang.Object
com.jme3.scene.plugins.MTLLoader
- All Implemented Interfaces:
AssetLoader
-
Field Summary
Modifier and TypeFieldDescriptionprotected float
protected Texture
protected ColorRGBA
protected AssetManager
protected ColorRGBA
protected Texture
protected boolean
protected boolean
protected String
protected AssetKey
protected MaterialList
protected String
protected Texture
protected Scanner
protected boolean
protected float
protected ColorRGBA
protected Texture
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Loads asset from the given input stream, parsing it into an application-usable object.protected Texture
loadTexture
(String path) protected String
protected ColorRGBA
protected boolean
readLine()
void
reset()
protected void
protected boolean
skipLine()
protected void
startMaterial
(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:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in interfaceAssetLoader
- Parameters:
info
- the located asset- Returns:
- An object representing the resource.
- Throws:
IOException
- If an I/O error occurs while loading
-