enum Eagle::GPU::Wrap

Overview

What a texture shows outside its edges. Repeat tiles it, which Graphics#draw_tiled and floor textures need. Mirror tiles with every other copy flipped, and Clamp stretches the edge pixels.

Defined in:

eagle/gpu/device.cr

Enum Members

Clamp = 0

Stretch the edge pixels.

Repeat = 1

Tile the texture.

Mirror = 2

Tile with every other copy flipped.

Instance Method Summary

Instance Method Detail

def clamp? #

Returns true if this enum value equals Clamp


def mirror? #

Returns true if this enum value equals Mirror


def repeat? #

Returns true if this enum value equals Repeat