Packageaway3d.materials.utils
Classpublic class MipmapGenerator

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

Public Methods
 MethodDefined by
  
generateMipMaps(source:BitmapData, target:Texture, mipmap:BitmapData = null, alpha:Boolean = false):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: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.
Wiki link
Click to go to the wiki page for 'away3d.materials.utils.MipmapGenerator'

Code examples

Comments