com.jme3.asset
Class AndroidImageInfo
java.lang.Object
com.jme3.asset.AndroidImageInfo
public class AndroidImageInfo
- extends java.lang.Object
AndroidImageInfo
is set in a jME3 image via the Image.setEfficentData(java.lang.Object)
method to retrieve a Bitmap
when it is needed by the renderer.
User code may extend AndroidImageInfo
and provide their own implementation of the
loadBitmap()
method to acquire a bitmap by their own means.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
assetInfo
protected AssetInfo assetInfo
bitmap
protected android.graphics.Bitmap bitmap
format
protected Image.Format format
AndroidImageInfo
public AndroidImageInfo(AssetInfo assetInfo)
getBitmap
public android.graphics.Bitmap getBitmap()
notifyBitmapUploaded
public void notifyBitmapUploaded()
getFormat
public Image.Format getFormat()
loadBitmap
protected void loadBitmap()
throws java.io.IOException
- Loads the bitmap directly from the asset info, possibly updating
or creating the image object.
- Throws:
java.io.IOException