TextureResource
Construct TextureResource by specifying path.
Parameters
The given path.
The different ways of loading type, default is FROM_ASSETS.
The texture resource creating option.
Construct TextureResource by specifying path.
Parameters
The given path.
The different ways of loading type, default is FROM_ASSETS.
Throws
If an error occurs during the loading process.
Asynchronously create texture resource from bitmap.
Only a part of format is supported now:
Bitmap.Config.ARGB_8888
Bitmap.Config.RGBA_F16
If a Bitmap with unsupported format is given, an IllegalArgumentException will be thrown.
Note that, you shouldn't modify this bitmap during creating texture resource.
Return
The TextureResource which load.
Parameters
The given bitmap.
Throws
If an error occurs during the loading process.
If the bitmap has an unsupported format.