Difference between revisions of "CompressedData:getMipmapCount"

m
(Blanked page)
 
Line 1: Line 1:
{{newin|[[0.9.0]]|090|type=function}}
 
Gets the number of [http://en.wikipedia.org/wiki/Mipmap mipmap] levels in the CompressedData. The base mipmap level (original image) is included in the count.
 
  
== Function ==
 
=== Synopsis ===
 
<source lang="lua">
 
mipmaps = CompressedData:getMipmapCount( )
 
</source>
 
=== Arguments ===
 
None.
 
=== Returns ===
 
{{param|number|mipmaps|The number of mipmap levels stored in the CompressedData.}}
 
 
== Notes ==
 
Mipmap filtering cannot be activated for an [[Image]] created from a CompressedData which does not have enough mipmap levels to go down to 1x1. For example, a 256x256 image created from a CompressedData should have 8 mipmap levels or [[(Image):setMipmapFilter|Image:setMipmapFilter]] will error. Most tools which can create compressed textures are able to automatically generate mipmaps for them in the same file.
 
 
== See Also ==
 
* [[parent::CompressedData]]
 
* [[(Image):setMipmapFilter|Image:setMipmapFilter]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the number of mipmap levels in the CompressedData.}}
 
== Other Languages ==
 
{{i18n|CompressedData:getMipmapCount}}
 

Latest revision as of 03:44, 3 October 2015