libgdx API

com.badlogic.gdx.assets
Class AssetDescriptor

java.lang.Object
  extended by com.badlogic.gdx.assets.AssetDescriptor

public class AssetDescriptor
extends java.lang.Object

Describes an asset to be loaded by it's filename, type and AssetLoaderParameters. Instances of this are used in AssetLoadingTask to load the actual asset.

Author:
mzechner

Field Summary
 java.lang.String fileName
           
 AssetLoaderParameters params
           
 java.lang.Class type
           
 
Constructor Summary
AssetDescriptor(java.lang.String fileName, java.lang.Class assetType)
           
AssetDescriptor(java.lang.String fileName, java.lang.Class<T> assetType, AssetLoaderParameters<T> params)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileName

public final java.lang.String fileName

type

public final java.lang.Class type

params

public final AssetLoaderParameters params
Constructor Detail

AssetDescriptor

public AssetDescriptor(java.lang.String fileName,
                       java.lang.Class assetType)

AssetDescriptor

public AssetDescriptor(java.lang.String fileName,
                       java.lang.Class<T> assetType,
                       AssetLoaderParameters<T> params)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)