APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.assets.loaders

public Class CubemapLoader

extends AsynchronousAssetLoader<Cubemap, CubemapLoader.CubemapParameter>
Class Inheritance
Imports
com.badlogic.gdx.assets.AssetDescriptor, .AssetLoaderParameters, .AssetManager, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.Cubemap, .CubemapData, .Pixmap.Format, .Texture.TextureFilter, .Texture.TextureWrap, .TextureData, com.badlogic.gdx.graphics.glutils.KTXTextureData, com.badlogic.gdx.utils.Array

AssetLoader for Cubemap instances. The pixel data is loaded asynchronously. The texture is then created on the rendering thread, synchronously. Passing a CubemapParameter to AssetManager#load(String, Class, AssetLoaderParameters) allows one to specify parameters as can be passed to the various Cubemap constructors, e.g. filtering and so on.
Author
mzechner, Vincent Bousquet

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
pack-priv CubemapLoader.CubemapLoaderInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Array<AssetDescriptor<T>>
getDependencies(String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first.

public void
loadAsync(AssetManager manager, String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

public Cubemap
loadSync(AssetManager manager, String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Inherited from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader:
unloadAsync

Field Detail

infoback to summary
pack-priv CubemapLoader.CubemapLoaderInfo info

Constructor Detail

CubemapLoaderback to summary
public CubemapLoader(FileHandleResolver resolver)

Method Detail

getDependenciesback to summary
public Array<AssetDescriptor<T>> getDependencies(String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Doc from com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.

Annotations
@Override
loadAsyncback to summary
public void loadAsync(AssetManager manager, String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

Annotations
@Override
loadSyncback to summary
public Cubemap loadSync(AssetManager manager, String fileName, FileHandle file, CubemapLoader.CubemapParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Annotations
@Override
com.badlogic.gdx.assets.loaders back to summary

public Class CubemapLoader.CubemapLoaderInfo

extends Object
Class Inheritance
  • java.lang.Object
  • com.badlogic.gdx.assets.loaders.CubemapLoader.CubemapLoaderInfo

Field Summary

Modifier and TypeField and Description
pack-priv Cubemap
pack-priv CubemapData
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cubemapback to summary
pack-priv Cubemap cubemap
databack to summary
pack-priv CubemapData data
filenameback to summary
pack-priv String filename

Constructor Detail

CubemapLoaderInfoback to summary
public CubemapLoaderInfo()
com.badlogic.gdx.assets.loaders back to summary

public Class CubemapLoader.CubemapParameter

extends AssetLoaderParameters<Cubemap>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public Cubemap
cubemap

The texture to put the TextureData in, optional.

public CubemapData
cubemapData

CubemapData for textures created on the fly, optional.

public Pixmap.Format
format

the format of the final Texture.

public Texture.TextureFilter
public Texture.TextureFilter
public Texture.TextureWrap
public Texture.TextureWrap
Inherited from com.badlogic.gdx.assets.AssetLoaderParameters:
loadedCallback

Constructor Summary

AccessConstructor and Description
public

Field Detail

cubemapback to summary
public Cubemap cubemap

The texture to put the TextureData in, optional.

cubemapDataback to summary
public CubemapData cubemapData

CubemapData for textures created on the fly, optional. When set, all format and genMipMaps are ignored

formatback to summary
public Pixmap.Format format

the format of the final Texture. Uses the source images format if null

magFilterback to summary
public Texture.TextureFilter magFilter
minFilterback to summary
public Texture.TextureFilter minFilter
wrapUback to summary
public Texture.TextureWrap wrapU
wrapVback to summary
public Texture.TextureWrap wrapV

Constructor Detail

CubemapParameterback to summary
public CubemapParameter()