Texture:getMipmapCount

Available since LÖVE 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

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Texture:getMipmapCount