public class TextureResolver
extends java.lang.Object
implements com.badlogic.gdx.utils.Disposable
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.utils.Array<GLTFSampler> |
glSamplers |
protected com.badlogic.gdx.utils.Array<GLTFTexture> |
glTextures |
protected com.badlogic.gdx.utils.ObjectMap<java.lang.Integer,com.badlogic.gdx.graphics.Texture> |
texturesMipmap |
protected com.badlogic.gdx.utils.ObjectMap<java.lang.Integer,com.badlogic.gdx.graphics.Texture> |
texturesSimple |
| Constructor and Description |
|---|
TextureResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> |
getTexture(GLTFTextureInfo glMap) |
com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> |
getTextures(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> textures) |
void |
loadTextures(com.badlogic.gdx.utils.Array<GLTFTexture> glTextures,
com.badlogic.gdx.utils.Array<GLTFSampler> glSamplers,
ImageResolver imageResolver) |
protected final com.badlogic.gdx.utils.ObjectMap<java.lang.Integer,com.badlogic.gdx.graphics.Texture> texturesSimple
protected final com.badlogic.gdx.utils.ObjectMap<java.lang.Integer,com.badlogic.gdx.graphics.Texture> texturesMipmap
protected com.badlogic.gdx.utils.Array<GLTFTexture> glTextures
protected com.badlogic.gdx.utils.Array<GLTFSampler> glSamplers
public void loadTextures(com.badlogic.gdx.utils.Array<GLTFTexture> glTextures, com.badlogic.gdx.utils.Array<GLTFSampler> glSamplers, ImageResolver imageResolver)
public com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> getTexture(GLTFTextureInfo glMap)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> getTextures(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> textures)