This function can be used to set the texture filtering (linear interpolation) of all images drawn on the game screen. When this is enabled (true) all textures will be smoothed when drawn (this includes sprites as they too are considered textures), meaning that when scaled or moved if there is not a 1:1 pixel ratio then there will be a "smudging" across various pixels which may make images appear blurry depending on the art style used. If this is disabled (false) then images will be drawn based on the nearest pixel when scaled or moving which may lead to "blocky" images. The default value is false, and this can also be changed in the Global Game Options for individual target platforms.

NOTE: This setting will override any texture stage interpolation set for shaders using the function gpu_set_texfilter_ext.




参数 描述
enable Enable or disable texture filtering (true / false)




if gpu_get_texfilter()

The above code checks to see if texture filtering is on or off and switches it accordingly.

上一页: GPU Functions
下一页: gpu_set_texfilter_ext
© Copyright YoYo Games Ltd. 2018 All Rights Reserved