Package | Description |
---|---|
com.badlogic.gdx | |
com.badlogic.gdx.assets | |
com.badlogic.gdx.assets.loaders | |
com.badlogic.gdx.assets.loaders.resolvers | |
com.badlogic.gdx.files |
Platform independent wrappers for file handles and file streaming.
|
com.badlogic.gdx.graphics | |
com.badlogic.gdx.graphics.g2d | |
com.badlogic.gdx.graphics.g3d | |
com.badlogic.gdx.graphics.g3d.loader | |
com.badlogic.gdx.graphics.g3d.utils | |
com.badlogic.gdx.graphics.glutils | |
com.badlogic.gdx.maps.tiled | |
com.badlogic.gdx.scenes.scene2d.ui | |
com.badlogic.gdx.utils |
Modifier and Type | Method and Description |
---|---|
FileHandle |
Files.absolute(java.lang.String path)
Convenience method that returns a
Files.FileType.Absolute file handle. |
FileHandle |
Files.classpath(java.lang.String path)
Convenience method that returns a
Files.FileType.Classpath file handle. |
FileHandle |
Files.external(java.lang.String path)
Convenience method that returns a
Files.FileType.External file handle. |
FileHandle |
Files.getFileHandle(java.lang.String path,
Files.FileType type)
Returns a handle representing a file or directory.
|
FileHandle |
Files.internal(java.lang.String path)
Convenience method that returns a
Files.FileType.Internal file handle. |
FileHandle |
Files.local(java.lang.String path)
Convenience method that returns a
Files.FileType.Local file handle. |
Modifier and Type | Method and Description |
---|---|
Music |
Audio.newMusic(FileHandle file)
Creates a new
Music instance which is used to play back a music stream from a file. |
Sound |
Audio.newSound(FileHandle fileHandle)
Creates a new
Sound which is used to play back audio effects such as gun shots or explosions. |
Modifier and Type | Field and Description |
---|---|
FileHandle |
AssetDescriptor.file
The resolved file.
|
Constructor and Description |
---|
AssetDescriptor(FileHandle file,
java.lang.Class<T> assetType)
Creates an AssetDescriptor with an already resolved name.
|
AssetDescriptor(FileHandle file,
java.lang.Class<T> assetType,
AssetLoaderParameters<T> params)
Creates an AssetDescriptor with an already resolved name.
|
Modifier and Type | Field and Description |
---|---|
FileHandle |
ParticleEffectLoader.ParticleEffectParameter.imagesDir
Image directory.
|
Modifier and Type | Method and Description |
---|---|
FileHandle |
AssetLoader.resolve(java.lang.String fileName) |
FileHandle |
FileHandleResolver.resolve(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
Array<AssetDescriptor> |
BitmapFontLoader.getDependencies(java.lang.String fileName,
FileHandle file,
BitmapFontLoader.BitmapFontParameter parameter) |
Array<AssetDescriptor> |
MusicLoader.getDependencies(java.lang.String fileName,
FileHandle file,
MusicLoader.MusicParameter parameter) |
abstract Array<AssetDescriptor> |
AssetLoader.getDependencies(java.lang.String fileName,
FileHandle file,
P parameter)
Returns the assets this asset requires to be loaded first.
|
Array<AssetDescriptor> |
ModelLoader.getDependencies(java.lang.String fileName,
FileHandle file,
P parameters) |
Array<AssetDescriptor> |
ParticleEffectLoader.getDependencies(java.lang.String fileName,
FileHandle file,
ParticleEffectLoader.ParticleEffectParameter param) |
Array<AssetDescriptor> |
PixmapLoader.getDependencies(java.lang.String fileName,
FileHandle file,
PixmapLoader.PixmapParameter parameter) |
Array<AssetDescriptor> |
SkinLoader.getDependencies(java.lang.String fileName,
FileHandle file,
SkinLoader.SkinParameter parameter) |
Array<AssetDescriptor> |
SoundLoader.getDependencies(java.lang.String fileName,
FileHandle file,
SoundLoader.SoundParameter parameter) |
Array<AssetDescriptor> |
TextureAtlasLoader.getDependencies(java.lang.String fileName,
FileHandle atlasFile,
TextureAtlasLoader.TextureAtlasParameter parameter) |
Array<AssetDescriptor> |
TextureLoader.getDependencies(java.lang.String fileName,
FileHandle file,
TextureLoader.TextureParameter parameter) |
abstract T |
SynchronousAssetLoader.load(AssetManager assetManager,
java.lang.String fileName,
FileHandle file,
P parameter) |
ParticleEffect |
ParticleEffectLoader.load(AssetManager am,
java.lang.String fileName,
FileHandle file,
ParticleEffectLoader.ParticleEffectParameter param) |
TextureAtlas |
TextureAtlasLoader.load(AssetManager assetManager,
java.lang.String fileName,
FileHandle file,
TextureAtlasLoader.TextureAtlasParameter parameter) |
void |
BitmapFontLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
BitmapFontLoader.BitmapFontParameter parameter) |
void |
MusicLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
MusicLoader.MusicParameter parameter) |
abstract void |
AsynchronousAssetLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
P parameter)
Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
|
void |
ModelLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
P parameters) |
void |
PixmapLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
PixmapLoader.PixmapParameter parameter) |
void |
SkinLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
SkinLoader.SkinParameter parameter) |
void |
SoundLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
SoundLoader.SoundParameter parameter) |
void |
TextureLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
TextureLoader.TextureParameter parameter) |
Model |
ModelLoader.loadModel(FileHandle fileHandle)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
P parameters)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider,
P parameters)
Directly load the model on the calling thread.
|
ModelData |
ModelLoader.loadModelData(FileHandle fileHandle)
Directly load the raw model data on the calling thread.
|
abstract ModelData |
ModelLoader.loadModelData(FileHandle fileHandle,
P parameters)
Directly load the raw model data on the calling thread.
|
BitmapFont |
BitmapFontLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
BitmapFontLoader.BitmapFontParameter parameter) |
Music |
MusicLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
MusicLoader.MusicParameter parameter) |
abstract T |
AsynchronousAssetLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
P parameter)
Loads the OpenGL part of the asset.
|
Model |
ModelLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
P parameters) |
Pixmap |
PixmapLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
PixmapLoader.PixmapParameter parameter) |
Skin |
SkinLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
SkinLoader.SkinParameter parameter) |
Sound |
SoundLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
SoundLoader.SoundParameter parameter) |
Texture |
TextureLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
TextureLoader.TextureParameter parameter) |
Modifier and Type | Method and Description |
---|---|
FileHandle |
ExternalFileHandleResolver.resolve(java.lang.String fileName) |
FileHandle |
InternalFileHandleResolver.resolve(java.lang.String fileName) |
FileHandle |
ResolutionFileResolver.resolve(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
ResolutionFileResolver.resolve(FileHandle originalHandle,
java.lang.String suffix) |
Modifier and Type | Class and Description |
---|---|
class |
FileHandleStream
A FileHandle intended to be subclassed for the purpose of implementing
FileHandleStream.read() and/or FileHandleStream.write(boolean) . |
Modifier and Type | Method and Description |
---|---|
FileHandle |
FileHandle.child(java.lang.String name)
Returns a handle to the child with the specified name.
|
FileHandle |
FileHandleStream.child(java.lang.String name) |
FileHandle[] |
FileHandle.list()
Returns the paths to the children of this directory.
|
FileHandle[] |
FileHandleStream.list() |
FileHandle[] |
FileHandle.list(java.lang.String suffix)
Returns the paths to the children of this directory with the specified suffix.
|
FileHandle |
FileHandle.parent() |
FileHandle |
FileHandleStream.parent() |
FileHandle |
FileHandle.sibling(java.lang.String name)
Returns a handle to the sibling with the specified name.
|
FileHandle |
FileHandleStream.sibling(java.lang.String name) |
static FileHandle |
FileHandle.tempDirectory(java.lang.String prefix) |
static FileHandle |
FileHandle.tempFile(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
FileHandle.copyTo(FileHandle dest)
Copies this file or directory to the specified file or directory.
|
void |
FileHandleStream.copyTo(FileHandle dest) |
void |
FileHandle.moveTo(FileHandle dest)
Moves this file to the specified file, overwriting the file if it already exists.
|
void |
FileHandleStream.moveTo(FileHandle dest) |
Modifier and Type | Method and Description |
---|---|
protected static TextureData |
GLTexture.createTextureData(FileHandle file,
boolean useMipMaps) |
protected static TextureData |
GLTexture.createTextureData(FileHandle file,
Pixmap.Format format,
boolean useMipMaps) |
void |
Cubemap.load(Cubemap.CubemapSide side,
FileHandle file)
Loads the texture specified using the
FileHandle and sets it to specified side,
overwriting any previous data set to that side. |
void |
Cubemap.load(Cubemap.CubemapSide side,
FileHandle file,
boolean useMipMaps)
Loads the texture specified using the
FileHandle and sets it to specified side,
overwriting any previous data set to that side. |
static Pixmap |
PixmapIO.readCIM(FileHandle file)
Reads the
Pixmap from the given file, assuming the Pixmap was written with the
PixmapIO.writeCIM(FileHandle, Pixmap) method. |
static void |
PixmapIO.writeCIM(FileHandle file,
Pixmap pixmap)
Writes the
Pixmap to the given file using a custom compression scheme. |
static void |
PixmapIO.writePNG(FileHandle file,
Pixmap pixmap)
Writes the pixmap as a PNG.
|
Constructor and Description |
---|
Cubemap(FileHandle positiveX,
FileHandle negativeX,
FileHandle positiveY,
FileHandle negativeY,
FileHandle positiveZ,
FileHandle negativeZ)
Construct a Cubemap with the specified texture files for the sides, does not generate mipmaps.
|
Cubemap(FileHandle positiveX,
FileHandle negativeX,
FileHandle positiveY,
FileHandle negativeY,
FileHandle positiveZ,
FileHandle negativeZ,
boolean useMipMaps)
Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps.
|
Pixmap(FileHandle file)
Creates a new Pixmap instance from the given file.
|
Texture(FileHandle file) |
Texture(FileHandle file,
boolean useMipMaps) |
Texture(FileHandle file,
Pixmap.Format format,
boolean useMipMaps) |
Modifier and Type | Field and Description |
---|---|
FileHandle |
BitmapFont.BitmapFontData.fontFile |
FileHandle |
TextureAtlas.TextureAtlasData.Page.textureFile |
Modifier and Type | Method and Description |
---|---|
FileHandle |
BitmapFont.BitmapFontData.getFontFile() |
Modifier and Type | Method and Description |
---|---|
void |
ParticleEffect.load(FileHandle effectFile,
FileHandle imagesDir) |
void |
ParticleEffect.load(FileHandle effectFile,
TextureAtlas atlas) |
PolygonRegion |
PolygonRegionLoader.load(TextureRegion textureRegion,
FileHandle file)
Loads a PolygonRegion from a PSH (Polygon SHape) file.
|
void |
ParticleEffect.loadEmitterImages(FileHandle imagesDir) |
void |
ParticleEffect.loadEmitters(FileHandle effectFile) |
protected Texture |
ParticleEffect.loadTexture(FileHandle file) |
Constructor and Description |
---|
BitmapFont.BitmapFontData(FileHandle fontFile,
boolean flip) |
BitmapFont(FileHandle fontFile)
Creates a BitmapFont from a BMFont file.
|
BitmapFont(FileHandle fontFile,
boolean flip)
Creates a BitmapFont from a BMFont file.
|
BitmapFont(FileHandle fontFile,
FileHandle imageFile,
boolean flip)
Creates a BitmapFont from a BMFont file, using the specified image for glyphs.
|
BitmapFont(FileHandle fontFile,
FileHandle imageFile,
boolean flip,
boolean integer)
Creates a BitmapFont from a BMFont file, using the specified image for glyphs.
|
BitmapFont(FileHandle fontFile,
TextureRegion region)
Creates a BitmapFont with the glyphs relative to the specified region.
|
BitmapFont(FileHandle fontFile,
TextureRegion region,
boolean flip)
Creates a BitmapFont with the glyphs relative to the specified region.
|
TextureAtlas.TextureAtlasData.Page(FileHandle handle,
boolean useMipMaps,
Pixmap.Format format,
Texture.TextureFilter minFilter,
Texture.TextureFilter magFilter,
Texture.TextureWrap uWrap,
Texture.TextureWrap vWrap) |
TextureAtlas.TextureAtlasData(FileHandle packFile,
FileHandle imagesDir,
boolean flip) |
TextureAtlas(FileHandle packFile)
Loads the specified pack file, using the parent directory of the pack file to find the page images.
|
TextureAtlas(FileHandle packFile,
boolean flip) |
TextureAtlas(FileHandle packFile,
FileHandle imagesDir) |
TextureAtlas(FileHandle packFile,
FileHandle imagesDir,
boolean flip) |
Constructor and Description |
---|
ModelBatch(FileHandle vertexShader,
FileHandle fragmentShader)
Construct a ModelBatch with the default implementation and the specified ubershader.
|
Modifier and Type | Method and Description |
---|---|
Model |
ObjLoader.loadModel(FileHandle fileHandle,
boolean flipV)
Directly load the model on the calling thread.
|
ModelData |
G3dModelLoader.loadModelData(FileHandle fileHandle,
AssetLoaderParameters<Model> parameters) |
protected ModelData |
ObjLoader.loadModelData(FileHandle file,
boolean flipV) |
ModelData |
ObjLoader.loadModelData(FileHandle file,
ObjLoader.ObjLoaderParameters parameters) |
Model |
ObjLoader.loadObj(FileHandle file)
Deprecated.
Use
ModelLoader.loadModel(FileHandle) instead.Loads a Wavefront OBJ file from a given file handle. |
Model |
ObjLoader.loadObj(FileHandle file,
boolean flipV)
Deprecated.
Use
ObjLoader.loadModel(FileHandle, boolean) instead.Loads a Wavefront OBJ file from a given file handle. |
ModelData |
G3dModelLoader.parseModel(FileHandle handle) |
Constructor and Description |
---|
DefaultShaderProvider(FileHandle vertexShader,
FileHandle fragmentShader) |
DepthShaderProvider(FileHandle vertexShader,
FileHandle fragmentShader) |
Modifier and Type | Method and Description |
---|---|
FileHandle |
FileTextureData.getFileHandle() |
Modifier and Type | Method and Description |
---|---|
void |
ETC1.ETC1Data.write(FileHandle file)
Writes the ETC1Data with a PKM header to the given file.
|
Constructor and Description |
---|
ETC1.ETC1Data(FileHandle pkmFile) |
ETC1TextureData(FileHandle file) |
ETC1TextureData(FileHandle file,
boolean useMipMaps) |
FileTextureData(FileHandle file,
Pixmap preloadedPixmap,
Pixmap.Format format,
boolean useMipMaps) |
ShaderProgram(FileHandle vertexShader,
FileHandle fragmentShader) |
Modifier and Type | Method and Description |
---|---|
static FileHandle |
AtlasTmxMapLoader.getRelativeFileHandle(FileHandle file,
java.lang.String path) |
protected static FileHandle |
TmxMapLoader.getRelativeFileHandle(FileHandle file,
java.lang.String path) |
protected FileHandle |
AtlasTmxMapLoader.loadAtlas(XmlReader.Element root,
FileHandle tmxFile) |
Modifier and Type | Method and Description |
---|---|
protected Array<FileHandle> |
TmxMapLoader.loadTilesets(XmlReader.Element root,
FileHandle tmxFile)
Loads the tilesets
|
Modifier and Type | Method and Description |
---|---|
Array<AssetDescriptor> |
AtlasTmxMapLoader.getDependencies(java.lang.String fileName,
FileHandle tmxFile,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
Array<AssetDescriptor> |
TideMapLoader.getDependencies(java.lang.String fileName,
FileHandle tmxFile,
TideMapLoader.Parameters parameter) |
Array<AssetDescriptor> |
TmxMapLoader.getDependencies(java.lang.String fileName,
FileHandle tmxFile,
TmxMapLoader.Parameters parameter)
Retrieves TiledMap resource dependencies
|
static FileHandle |
AtlasTmxMapLoader.getRelativeFileHandle(FileHandle file,
java.lang.String path) |
protected static FileHandle |
TmxMapLoader.getRelativeFileHandle(FileHandle file,
java.lang.String path) |
TiledMap |
TideMapLoader.load(AssetManager assetManager,
java.lang.String fileName,
FileHandle tideFile,
TideMapLoader.Parameters parameter) |
void |
AtlasTmxMapLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle tmxFile,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
void |
TmxMapLoader.loadAsync(AssetManager manager,
java.lang.String fileName,
FileHandle tmxFile,
TmxMapLoader.Parameters parameter) |
protected FileHandle |
AtlasTmxMapLoader.loadAtlas(XmlReader.Element root,
FileHandle tmxFile) |
protected TiledMap |
AtlasTmxMapLoader.loadMap(XmlReader.Element root,
FileHandle tmxFile,
com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader.AtlasResolver resolver,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
TiledMap |
AtlasTmxMapLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
TiledMap |
TmxMapLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
TmxMapLoader.Parameters parameter) |
protected TiledMap |
TmxMapLoader.loadTilemap(XmlReader.Element root,
FileHandle tmxFile,
ImageResolver imageResolver)
Loads the map data, given the XML root element and an
ImageResolver used to return the tileset Textures |
protected void |
AtlasTmxMapLoader.loadTileset(TiledMap map,
XmlReader.Element element,
FileHandle tmxFile,
com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader.AtlasResolver resolver,
AtlasTmxMapLoader.AtlasTiledMapLoaderParameters parameter) |
protected void |
TmxMapLoader.loadTileSet(TiledMap map,
XmlReader.Element element,
FileHandle tmxFile,
ImageResolver imageResolver)
Loads the specified tileset data, adding it to the collection of the specified map, given the XML element, the tmxFile and
an
ImageResolver used to retrieve the tileset Textures. |
protected Array<FileHandle> |
TmxMapLoader.loadTilesets(XmlReader.Element root,
FileHandle tmxFile)
Loads the tilesets
|
Modifier and Type | Method and Description |
---|---|
protected Json |
Skin.getJsonLoader(FileHandle skinFile) |
void |
Skin.load(FileHandle skinFile)
Adds all resources in the specified skin JSON file.
|
Constructor and Description |
---|
Skin(FileHandle skinFile)
Creates a skin containing the resources in the specified skin JSON file.
|
Skin(FileHandle skinFile,
TextureAtlas atlas)
Creates a skin containing the resources in the specified skin JSON file and the texture regions from the specified atlas.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
Json.fromJson(java.lang.Class<T> type,
java.lang.Class elementType,
FileHandle file) |
<T> T |
Json.fromJson(java.lang.Class<T> type,
FileHandle file) |
JsonValue |
BaseJsonReader.parse(FileHandle file) |
JsonValue |
JsonReader.parse(FileHandle file) |
JsonValue |
UBJsonReader.parse(FileHandle file) |
XmlReader.Element |
XmlReader.parse(FileHandle file) |
void |
Json.toJson(java.lang.Object object,
java.lang.Class knownType,
java.lang.Class elementType,
FileHandle file) |
void |
Json.toJson(java.lang.Object object,
java.lang.Class knownType,
FileHandle file) |
void |
Json.toJson(java.lang.Object object,
FileHandle file) |