Difference between revisions of "love.graphics.setDefaultFilter"

(Arguments: - Noted implicit default for upscaling filter mode.)
(See Also)
Line 18: Line 18:
 
* [[love.graphics.getDefaultFilter]]
 
* [[love.graphics.getDefaultFilter]]
 
* [[FilterMode]]
 
* [[FilterMode]]
 +
* [[love.graphics.setLineStyle]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets the default scaling filters used with [[Image]]s, [[Canvas]]es, and [[Font]]s.}}
 
{{#set:Description=Sets the default scaling filters used with [[Image]]s, [[Canvas]]es, and [[Font]]s.}}
 
{{#set:Since=090}}
 
{{#set:Since=090}}
 
{{#set:Sub-Category=State}}
 
{{#set:Sub-Category=State}}
 +
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setDefaultFilter}}
 
{{i18n|love.graphics.setDefaultFilter}}

Revision as of 15:49, 14 September 2024

Available since LÖVE 0.9.0
It has been renamed from love.graphics.setDefaultImageFilter.

Sets the default scaling filters used with Images, Canvases, and Fonts.

O.png This function does not apply retroactively to loaded images. Existing objects retain their current scaling filters.  


Function

Synopsis

love.graphics.setDefaultFilter( min, mag, anisotropy )

Arguments

FilterMode min
Filter mode used when scaling the image down.
FilterMode mag (min)
Filter mode used when scaling the image up.
number anisotropy (1)
Maximum amount of Anisotropic Filtering used.

Returns

Nothing.

See Also



Other Languages