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

Static methods

@:value({ side : -1, alpha : false, mipmap : null })staticgenerateMipMaps(source:BitmapData, target:TextureBase, ?mipmap:BitmapData, alpha:Bool = false, side:Int = -1):Void

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

Parameters:

source

The source BitmapData to upload.

target

The target Texture to upload to.

mipmap

An optional mip map holder to avoids creating new instances for fe animated materials.

alpha

Indicate whether or not the uploaded bitmapData is transparent.