(GraphicsDevice device, InputStream in)
| 76 | /// |
| 77 | /// the loaded mesh |
| 78 | public static Mesh load(GraphicsDevice device, InputStream in) throws IOException { |
| 79 | try { |
| 80 | return load(device, readFully(in)); |
| 81 | } finally { |
| 82 | Util.cleanup(in); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /// Loads a model from in-memory `.glb` or `.gltf` bytes. |
| 87 | /// |