Interface MeshLoader
public interface MeshLoader
MeshLoader interface for all classes that load a Mesh from an InputStream.
All MeshLoader should be registered with the MeshFactory.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetMaterialPath(String absolutePath) Get the path to the material fileString[]default booleanhasMaterial(String absolutePath) Does this loader find a material file near the mesh file?voidload(BufferedInputStream inputStream, Mesh model) Load data from stream
-
Method Details
-
getEnglishName
String getEnglishName() -
getValidExtensions
String[] getValidExtensions() -
load
Load data from stream- Parameters:
inputStream- source of datamodel- mesh into which data will be loaded- Throws:
Exception- if something goes wrong
-
hasMaterial
Does this loader find a material file near the mesh file?- Parameters:
absolutePath- path to mesh file- Returns:
- true if a material file is found
-
getMaterialPath
-