Simp module

Texture_Filter

enumsince 0.31.0Source

How a texture is sampled when drawn larger or smaller than its size: LINEAR blends, NEAREST picks one texel.

Example↗
texture: Texture;
texture_load_from_file(*texture, "sprite.png");
texture_set_filter(*texture, .NEAREST);  // crisp pixels

This one is only checked to compile, not run.

Members

LINEAR
NEAREST

See also