{{newin (日本語)|[[0.9.0 (日本語)|0.9.0]]|090|type=関数}}
Sets the mipmap filter mode for a Texture. Prior to [[11.0]] this method only worked on [[Image]]s.

[http://en.wikipedia.org/wiki/Mipmap Mipmapping] is useful when drawing a texture at a reduced scale. It can improve performance and reduce aliasing issues.

In [[0.10.0]] and newer, the texture must be [[love.graphics.newImage|created]] with the <code>mipmaps</code> flag enabled for the mipmap filter to have any effect. In versions prior to [[0.10.0]] it's best to call this method directly after creating the image with [[love.graphics.newImage]], to avoid bugs in certain graphics drivers.

Due to hardware restrictions and driver bugs, in versions prior to [[0.10.0]] images that weren't loaded from a [[CompressedData]] must have power-of-two dimensions (64x64, 512x256, etc.) to use mipmaps.

== 関数 ==
=== 概要 ===
<source lang="lua">
Texture:setMipmapFilter( filtermode, sharpness )
</source>
=== 引数 ===
{{param (日本語)|FilterMode|filtermode|The filter mode to use in between mipmap levels. "nearest" will often give better performance.}}
{{param (日本語)|number|sharpness (0)|A positive sharpness value makes the texture use a more detailed mipmap level when drawing, at the expense of performance. A negative value does the reverse.}}
=== 返値 ===
ありません。
=== 注釈 ===
On mobile devices (Android and iOS), the sharpness parameter is not supported and will do nothing. You can use a custom [[Shader]] instead, and specify the mipmap sharpness in the optional third parameter to the <code>Texel</code> function in the shader (a ''negative'' value makes the texture use a more detailed mipmap level.)

In versions prior to [[0.10.0]], calling this function automatically creates mipmaps for the Image if none exist yet. If the image is [[(Image):isCompressed|compressed]] and its [[CompressedData]] has mipmap data included, it will use that.

== 関数 ==
Disables mipmap filtering.
=== 概要 ===
<source lang="lua">
Texture:setMipmapFilter( )
</source>
=== 引数 ===
なし。
=== 返値 ===
ありません。

== 関連 ==
* [[parent::Texture (日本語)]]
* [[Texture:getMipmapFilter (日本語)]]
* [[love.graphics.newImage (日本語)]]
* [[love.graphics.newCanvas (日本語)]]
* [[CanvasMipmapMode (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Sets the mipmap filter mode for a Texture.}}

== そのほかの言語 ==
{{i18n (日本語)|Texture:setMipmapFilter}}