Class G3dModelLoader
- java.lang.Object
-
- com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
-
- com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<Model,P>
-
- com.badlogic.gdx.assets.loaders.ModelLoader<ModelLoader.ModelParameters>
-
- com.badlogic.gdx.graphics.g3d.loader.G3dModelLoader
-
public class G3dModelLoader extends ModelLoader<ModelLoader.ModelParameters>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.assets.loaders.ModelLoader
ModelLoader.ModelParameters
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseJsonReaderreaderprotected QuaterniontempQstatic shortVERSION_HIstatic shortVERSION_LO-
Fields inherited from class com.badlogic.gdx.assets.loaders.ModelLoader
defaultParameters, items
-
-
Constructor Summary
Constructors Constructor Description G3dModelLoader(BaseJsonReader reader)G3dModelLoader(BaseJsonReader reader, FileHandleResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelDataloadModelData(FileHandle fileHandle, ModelLoader.ModelParameters parameters)Directly load the raw model data on the calling thread.protected voidparseAnimations(ModelData model, JsonValue json)protected VertexAttribute[]parseAttributes(JsonValue attributes)protected ColorparseColor(JsonValue colorArray)protected voidparseMaterials(ModelData model, JsonValue json, java.lang.String materialDir)protected voidparseMeshes(ModelData model, JsonValue json)ModelDataparseModel(FileHandle handle)protected Array<ModelNode>parseNodes(ModelData model, JsonValue json)protected ModelNodeparseNodesRecursively(JsonValue json)protected intparseTextureUsage(java.lang.String value)protected intparseType(java.lang.String type)protected Vector2readVector2(JsonValue vectorArray, float x, float y)-
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.AsynchronousAssetLoader
unloadAsync
-
Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader
resolve
-
-
-
-
Field Detail
-
VERSION_HI
public static final short VERSION_HI
- See Also:
- Constant Field Values
-
VERSION_LO
public static final short VERSION_LO
- See Also:
- Constant Field Values
-
reader
protected final BaseJsonReader reader
-
tempQ
protected final Quaternion tempQ
-
-
Constructor Detail
-
G3dModelLoader
public G3dModelLoader(BaseJsonReader reader)
-
G3dModelLoader
public G3dModelLoader(BaseJsonReader reader, FileHandleResolver resolver)
-
-
Method Detail
-
loadModelData
public ModelData loadModelData(FileHandle fileHandle, ModelLoader.ModelParameters parameters)
Description copied from class:ModelLoaderDirectly load the raw model data on the calling thread.- Specified by:
loadModelDatain classModelLoader<ModelLoader.ModelParameters>
-
parseModel
public ModelData parseModel(FileHandle handle)
-
parseType
protected int parseType(java.lang.String type)
-
parseAttributes
protected VertexAttribute[] parseAttributes(JsonValue attributes)
-
parseMaterials
protected void parseMaterials(ModelData model, JsonValue json, java.lang.String materialDir)
-
parseTextureUsage
protected int parseTextureUsage(java.lang.String value)
-
-