AssetLoader for Texture instances. The pixel data is loaded asynchronously. The texture is then created on the
rendering thread, synchronously. Passing a TextureParameter to
AssetManager#load(String, Class, AssetLoaderParameters) allows one to specify parameters as can be passed to the
various Texture constructors, e.g. filtering, whether to generate mipmaps and so on.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv TextureLoader. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, TextureLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public void | loadAsync(AssetManager manager, String fileName, FileHandle file, TextureLoader.
Implements abstract com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
| public Texture | loadSync(AssetManager manager, String fileName, FileHandle file, TextureLoader.
Implements abstract com. Loads the OpenGL part of the asset. |
| info | back to summary |
|---|---|
| pack-priv TextureLoader. | |
| TextureLoader | back to summary |
|---|---|
| public TextureLoader(FileHandleResolver resolver) | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. Doc from com. Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
| |
| loadAsync | back to summary |
|---|---|
| public void loadAsync(AssetManager manager, String fileName, FileHandle file, TextureLoader. Implements abstract com. Doc from com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
| |
| loadSync | back to summary |
|---|---|
| public Texture loadSync(AssetManager manager, String fileName, FileHandle file, TextureLoader. Implements abstract com. Doc from com. Loads the OpenGL part of the asset.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv TextureData | |
| pack-priv String | |
| pack-priv Texture |
| Access | Constructor and Description |
|---|---|
| public |
| data | back to summary |
|---|---|
| pack-priv TextureData data | |
| filename | back to summary |
|---|---|
| pack-priv String filename | |
| texture | back to summary |
|---|---|
| pack-priv Texture texture | |
| TextureLoaderInfo | back to summary |
|---|---|
| public TextureLoaderInfo() | |
| Modifier and Type | Field and Description |
|---|---|
| public Pixmap. | format
the format of the final Texture. |
| public boolean | genMipMaps
whether to generate mipmaps |
| public Texture. | |
| public Texture. | |
| public Texture | texture
The texture to put the |
| public TextureData | textureData
TextureData for textures created on the fly, optional. |
| public Texture. | |
| public Texture. |
| Access | Constructor and Description |
|---|---|
| public |
| format | back to summary |
|---|---|
| public Pixmap. the format of the final Texture. Uses the source images format if null | |
| genMipMaps | back to summary |
|---|---|
| public boolean genMipMaps whether to generate mipmaps | |
| magFilter | back to summary |
|---|---|
| public Texture. | |
| minFilter | back to summary |
|---|---|
| public Texture. | |
| texture | back to summary |
|---|---|
| public Texture texture The texture to put the | |
| textureData | back to summary |
|---|---|
| public TextureData textureData TextureData for textures created on the fly, optional. When set, all format and genMipMaps are ignored | |
| wrapU | back to summary |
|---|---|
| public Texture. | |
| wrapV | back to summary |
|---|---|
| public Texture. | |
| TextureParameter | back to summary |
|---|---|
| public TextureParameter() | |