Texture:getMipmapCount

Available since LÖVE 0.11.0
This function is not supported in earlier versions.

Gets the number of mipmaps contained in the Texture. If the texture was not created with mipmaps, it will return 1.

Function

Synopsis

mipmaps = Texture:getMipmapCount( )

Arguments

None.

Returns

number mipmaps
The number of mipmaps in the Texture.

See Also

Other Languages