Interface MeshLoader
public interface MeshLoader
MeshLoader
interface for all classes that load a Mesh
.
All MeshLoader
should be registered with the MeshFactory
.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getMaterialPath
(String absolutePath) Get the path to the material fileString[]
default boolean
hasMaterial
(String absolutePath) Does this loader find a material file near the mesh file?void
load
(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
Get the path to the material file- Parameters:
absolutePath
- path to mesh file- Returns:
- path to material file or null.
-