bmap_to_mipmap(BMAP*)

Creates a chain of mipmaps for the given bmap, or updates the mipmaps when they already exist. Can be used to create mipmaps for textures that are used by effect scripts, or for updating the mipmaps when a bitmap was modified.

Parameters:

BMAP* - bitmap pointer

Returns:

NULL if the mipmap creation failed, otherwise BMAP*.

Speed:

Slow

Remarks:

Example:

// create a mipmapped normals map for bumpmapping
bmap_to_normals(bmap_to_mipmap(material_bump.skin1),2);

See also:

bmap_to_normals, bmap_to_uv , pixel_to_bmap ► latest version online