libgdx API

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

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.loaders.wavefront.ObjLoader
All Implemented Interfaces:
ModelLoader, StillModelLoader

public class ObjLoader
extends java.lang.Object
implements StillModelLoader

Loads Wavefront OBJ files.

Author:
mzechner, espitz

Constructor Summary
ObjLoader()
           
 
Method Summary
 StillModel load(FileHandle handle, ModelLoaderHints hints)
           
 StillModel loadObj(FileHandle file)
          Loads a Wavefront OBJ file from a given file handle.
 StillModel loadObj(FileHandle file, boolean flipV)
          Loads a Wavefront OBJ file from a given file handle.
 StillModel loadObj(FileHandle file, FileHandle textureDir, boolean flipV)
          Loads a Wavefront OBJ file from a given file handle.
 
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 StillModel loadObj(FileHandle file)
Loads a Wavefront OBJ file from a given file handle.

Parameters:
file - the FileHandle

loadObj

public StillModel loadObj(FileHandle file,
                          boolean flipV)
Loads a Wavefront OBJ file from a given file handle.

Parameters:
file - the FileHandle
flipV - whether to flip the v texture coordinate (Blender, Wings3D, et al)

loadObj

public StillModel loadObj(FileHandle file,
                          FileHandle textureDir,
                          boolean flipV)
Loads a Wavefront OBJ file from a given file handle.

Parameters:
file - the FileHandle
textureDir -
flipV - whether to flip the v texture coordinate (Blender, Wings3D, et al)

load

public StillModel load(FileHandle handle,
                       ModelLoaderHints hints)
Specified by:
load in interface ModelLoader
Specified by:
load in interface StillModelLoader

libgdx API

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