public abstract class MaterialLoaderBase extends java.lang.Object implements MaterialLoader
| Modifier and Type | Field and Description |
|---|---|
protected TextureResolver |
textureResolver |
| Constructor and Description |
|---|
MaterialLoaderBase(TextureResolver textureResolver,
com.badlogic.gdx.graphics.g3d.Material defaultMaterial) |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.graphics.g3d.Material |
get(int index) |
com.badlogic.gdx.graphics.g3d.Material |
getDefaultMaterial() |
protected abstract com.badlogic.gdx.graphics.g3d.Material |
loadMaterial(GLTFMaterial glMaterial) |
void |
loadMaterials(com.badlogic.gdx.utils.Array<GLTFMaterial> glMaterials) |
protected TextureResolver textureResolver
public MaterialLoaderBase(TextureResolver textureResolver, com.badlogic.gdx.graphics.g3d.Material defaultMaterial)
public com.badlogic.gdx.graphics.g3d.Material getDefaultMaterial()
getDefaultMaterial in interface MaterialLoaderpublic com.badlogic.gdx.graphics.g3d.Material get(int index)
get in interface MaterialLoaderpublic void loadMaterials(com.badlogic.gdx.utils.Array<GLTFMaterial> glMaterials)
loadMaterials in interface MaterialLoaderprotected abstract com.badlogic.gdx.graphics.g3d.Material loadMaterial(GLTFMaterial glMaterial)