com.badlogic.gdx.graphics.g3d.loader
Class ObjLoader

java.lang.Object
  extended by com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
      extended by com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<Model,P>
          extended by com.badlogic.gdx.assets.loaders.ModelLoader<ObjLoader.ObjLoaderParameters>
              extended by com.badlogic.gdx.graphics.g3d.loader.ObjLoader

public class ObjLoader
extends ModelLoader<ObjLoader.ObjLoaderParameters>

Loads Wavefront OBJ files.

Author:
mzechner, espitz

Nested Class Summary
static class ObjLoader.ObjLoaderParameters
           
 
Constructor Summary
ObjLoader()
           
ObjLoader(FileHandleResolver resolver)
           
 
Method Summary
 Model loadModel(FileHandle fileHandle, boolean flipV)
          Directly load the model on the calling thread.
 ModelData loadModelData(FileHandle file, ObjLoader.ObjLoaderParameters parameters)
          Directly load the raw model data on the calling thread.
 Model loadObj(FileHandle file)
          Deprecated. Use ModelLoader.loadModel(FileHandle) instead.

Loads a Wavefront OBJ file from a given file handle.

 Model loadObj(FileHandle file, boolean flipV)
          Deprecated. Use loadModel(FileHandle, boolean) instead.

Loads a Wavefront OBJ file from a given file handle.

 
Methods inherited from class com.badlogic.gdx.assets.loaders.ModelLoader
getDependencies, loadAsync, loadModel, loadModel, loadModel, loadModel, loadModelData, loadSync
 
Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader
resolve
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjLoader

public ObjLoader()

ObjLoader

public ObjLoader(FileHandleResolver resolver)
Method Detail

loadObj

public Model loadObj(FileHandle file)
Deprecated. Use ModelLoader.loadModel(FileHandle) instead.

Loads a Wavefront OBJ file from a given file handle.

Parameters:
file - the FileHandle

loadObj

public Model loadObj(FileHandle file,
                     boolean flipV)
Deprecated. Use loadModel(FileHandle, boolean) instead.

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)

loadModel

public Model loadModel(FileHandle fileHandle,
                       boolean flipV)
Directly load the model on the calling thread. The model with not be managed by an AssetManager.


loadModelData

public ModelData loadModelData(FileHandle file,
                               ObjLoader.ObjLoaderParameters parameters)
Description copied from class: ModelLoader
Directly load the raw model data on the calling thread.

Specified by:
loadModelData in class ModelLoader<ObjLoader.ObjLoaderParameters>


Copyright © 2013. All Rights Reserved.