Enum texture_wrap_mode_e

Enum Documentation

enum class wt::bitmap::texture_wrap_mode_e : std::uint8_t

Wrap mode (per dimension) for UV coordinates that fall outside the fundamental \( [0,1] \) range:

  • black: produces black texels.

  • white: produces white texels.

  • clamp: clamps the UV coordinates to \( [0,1] \).

  • repeat (default): tiles the texture by using the fractional part of the UV coordinates, i.e. \( \vec{uv}=(-0.2,2.6) \) becomes \( \vec{uv}=(0.8,0.6) \).

  • mirror: tiles the texture similar to repeat but flips every consecutive tile, i.e. \( \vec{uv}=(-0.2,2.6) \) becomes \( \vec{uv}=(0.2,0.6) \).

Values:

enumerator black
enumerator white
enumerator clamp
enumerator repeat
enumerator mirror