libgdx API

com.badlogic.gdx.graphics.g3d.loaders
Class ModelLoader

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.loaders.ModelLoader

public class ModelLoader
extends java.lang.Object

A class for loading various model formats such as Wavefront OBJ. Ties in all the loaders from the loaders package.

Author:
mzechner

Constructor Summary
ModelLoader()
           
 
Method Summary
static Mesh loadObj(java.io.InputStream in)
          Loads a Wavefront OBJ file from the given InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelLoader

public ModelLoader()
Method Detail

loadObj

public static Mesh loadObj(java.io.InputStream in)
Loads a Wavefront OBJ file from the given InputStream. The OBJ file must only contain triangulated meshes. Materials are ignored.

Parameters:
in - the InputStream
Returns:
a Mesh holding the OBJ data or null in case something went wrong.

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)