MipmapGenerator is a helper class that uploads BitmapData to a Texture including mipmap levels.
public static function generateMipMaps(source:BitmapData, target:Texture, mipmap:BitmapData = null, alpha:Boolean = false):void
Uploads a BitmapData with mip maps to a target Texture object.
Parameters
| source:BitmapData — The source BitmapData to upload.
|
|
| target:Texture — The target Texture to upload to.
|
|
| mipmap:BitmapData (default = null ) — An optional mip map holder to avoids creating new instances for fe animated materials.
|
|
| alpha:Boolean (default = false ) — Indicate whether or not the uploaded bitmapData is transparent.
|