libgdx API

com.badlogic.gdx.graphics.g3d.loaders.obj
Class ObjLoader

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

public class ObjLoader
extends java.lang.Object

Loads Wavefront OBJ files, ignores material files.

Author:
mzechner

Constructor Summary
ObjLoader()
           
 
Method Summary
static Mesh loadObj(java.io.InputStream in)
          Loads a Wavefront OBJ file from the given input stream.
static Mesh loadObj(java.io.InputStream in, boolean flipV)
          Loads a Wavefront OBJ file from the given input stream.
static Mesh loadObjFromString(java.lang.String obj)
          Loads a mesh from the given string in Wavefront OBJ format
static Mesh loadObjFromString(java.lang.String obj, boolean flipV)
          Loads a mesh from the given string in Wavefront OBJ format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjLoader

public ObjLoader()
Method Detail

loadObj

public static Mesh loadObj(java.io.InputStream in)
Loads a Wavefront OBJ file from the given input stream.

Parameters:
in - the InputStream

loadObj

public static Mesh loadObj(java.io.InputStream in,
                           boolean flipV)
Loads a Wavefront OBJ file from the given input stream.

Parameters:
in - the InputStream
flipV - whether to flip the v texture coordinate or not

loadObjFromString

public static Mesh loadObjFromString(java.lang.String obj)
Loads a mesh from the given string in Wavefront OBJ format

Parameters:
obj - The string
Returns:
The Mesh

loadObjFromString

public static Mesh loadObjFromString(java.lang.String obj,
                                     boolean flipV)
Loads a mesh from the given string in Wavefront OBJ format

Parameters:
obj - The string
flipV - whether to flip the v texture coordinate or not
Returns:
The Mesh

libgdx API

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