Difference between revisions of "love.graphics.setDefaultFilter"

(fixed i18n (get -> set))
m
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[love.graphics.setDefaultImageFilter]]}}
 
{{newin|[[0.9.0]]|090|type=function|text=It has been renamed from [[love.graphics.setDefaultImageFilter]]}}
 
Sets the default scaling filters used with [[Image]]s, [[Canvas]]es, and [[Font]]s.
 
Sets the default scaling filters used with [[Image]]s, [[Canvas]]es, and [[Font]]s.
 +
{{notice|This function does not apply retroactively to loaded images. Existing objects retain their current scaling filters.}}
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 12: Line 13:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
== Notes ==
 
This function does not apply retroactively to loaded images.
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 00:18, 29 September 2020

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
Filter mode used when scaling the image up.
number anisotropy (1)
Maximum amount of Anisotropic Filtering used.

Returns

Nothing.

See Also


Other Languages