Packageaway3d.materials.utils
Classpublic class MipmapGenerator
InheritanceMipmapGenerator Inheritance Object

MipmapGenerator is a helper class that uploads BitmapData to a Texture including mipmap levels.



Public Methods
 MethodDefined By
  
generateMipMaps(source:BitmapData, target:TextureBase, mipmap:BitmapData = null, alpha:Boolean = false, side:int = -1):void
[static] Uploads a BitmapData with mip maps to a target Texture object.
MipmapGenerator
Method Detail
generateMipMaps()method
public static function generateMipMaps(source:BitmapData, target:TextureBase, mipmap:BitmapData = null, alpha:Boolean = false, side:int = -1):void

Uploads a BitmapData with mip maps to a target Texture object.

Parameters

source:BitmapData — The source BitmapData to upload.
 
target:TextureBase — 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.
 
side:int (default = -1)