public class G3dModelLoader extends ModelLoader<ModelLoader.ModelParameters>
ModelLoader.ModelParameters
Modifier and Type | Field and Description |
---|---|
protected BaseJsonReader |
reader |
protected Quaternion |
tempQ |
static short |
VERSION_HI |
static short |
VERSION_LO |
defaultParameters, items
Constructor and Description |
---|
G3dModelLoader(BaseJsonReader reader) |
G3dModelLoader(BaseJsonReader reader,
FileHandleResolver resolver) |
Modifier and Type | Method and Description |
---|---|
ModelData |
loadModelData(FileHandle fileHandle,
ModelLoader.ModelParameters parameters)
Directly load the raw model data on the calling thread.
|
protected void |
parseAnimations(ModelData model,
JsonValue json) |
protected VertexAttribute[] |
parseAttributes(JsonValue attributes) |
protected Color |
parseColor(JsonValue colorArray) |
protected void |
parseMaterials(ModelData model,
JsonValue json,
java.lang.String materialDir) |
protected void |
parseMeshes(ModelData model,
JsonValue json) |
ModelData |
parseModel(FileHandle handle) |
protected Array<ModelNode> |
parseNodes(ModelData model,
JsonValue json) |
protected ModelNode |
parseNodesRecursively(JsonValue json) |
protected int |
parseTextureUsage(java.lang.String value) |
protected int |
parseType(java.lang.String type) |
protected Vector2 |
readVector2(JsonValue vectorArray,
float x,
float y) |
getDependencies, loadAsync, loadModel, loadModel, loadModel, loadModel, loadModelData, loadSync
unloadAsync
resolve
public static final short VERSION_HI
public static final short VERSION_LO
protected final BaseJsonReader reader
protected final Quaternion tempQ
public G3dModelLoader(BaseJsonReader reader)
public G3dModelLoader(BaseJsonReader reader, FileHandleResolver resolver)
public ModelData loadModelData(FileHandle fileHandle, ModelLoader.ModelParameters parameters)
ModelLoader
loadModelData
in class ModelLoader<ModelLoader.ModelParameters>
public ModelData parseModel(FileHandle handle)
protected int parseType(java.lang.String type)
protected VertexAttribute[] parseAttributes(JsonValue attributes)
protected void parseMaterials(ModelData model, JsonValue json, java.lang.String materialDir)
protected int parseTextureUsage(java.lang.String value)