Package | away3d.materials.utils |
Class | public class MipmapGenerator |
Inheritance | MipmapGenerator Object |
Method | Defined 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 |
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 )
|