Class TextureResolver
java.lang.Object
gaiasky.util.gdx.model.gltf.loaders.shared.texture.TextureResolver
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.badlogic.gdx.utils.Array<GLTFSampler>
protected com.badlogic.gdx.utils.Array<GLTFTexture>
protected final com.badlogic.gdx.utils.ObjectMap<Integer,
com.badlogic.gdx.graphics.Texture> protected final com.badlogic.gdx.utils.ObjectMap<Integer,
com.badlogic.gdx.graphics.Texture> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Field Details
-
Constructor Details
-
TextureResolver
public TextureResolver()
-
-
Method Details
-
getTexture
public com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor<com.badlogic.gdx.graphics.Texture> getTexture(GLTFTextureInfo glMap) -
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
getTextures
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> getTextures(com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.Texture> textures)