Interface MeshParseContext.StreamLoader

Enclosing class:
MeshParseContext

public static interface MeshParseContext.StreamLoader
Opens an asset stream used by a mesh parser.

 MeshParseContext.StreamLoader loader = () -> Files.newInputStream(objPath);
 
Since:
0.0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull InputStream
    Opens the asset stream.
  • Method Details

    • load

      @NotNull @NotNull InputStream load() throws IOException
      Opens the asset stream.
      Returns:
      an open stream for the requested asset
      Throws:
      IOException - if the stream cannot be opened
      Since:
      0.0.1