enum

Tryst::SDL::ScaleMode

Inherits Enum < Comparable < Value < Object

How a texture is sampled when drawn at a size other than its own - Nearest keeps hard pixel edges (crisp upscaled pixel art), Linear smooths them (photographic content, or a deliberately softened scale-up).

Constants

Nearest = 0
Linear = 1

Instance methods

linear?

Returns true if this enum value equals Linear

Source
nearest?

Returns true if this enum value equals Nearest

Source