Enum Class Texture.WrapMode

java.lang.Object
java.lang.Enum<Texture.WrapMode>
com.ardor3d.image.Texture.WrapMode
All Implemented Interfaces:
Serializable, Comparable<Texture.WrapMode>, Constable
Enclosing class:
Texture

public static enum Texture.WrapMode extends Enum<Texture.WrapMode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    coordinate will be clamped to the range [-1/(2N), 1 + 1/(2N)] where N is the size of the texture in the direction of clamping.
    coordinate will be clamped to [0,1]
    coordinate will be clamped to the range [1/(2N), 1 - 1/(2N)] where N is the size of the texture in the direction of clamping.
    Wrap mode MIRROR_CLAMP_TO_BORDER_EXT mirrors and clamps to border the texture coordinate, where mirroring and clamping to border a value f computes: mirrorClampToBorder(f) = min(1+1/(2*N), max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping."
    mirrors and clamps the texture coordinate, where mirroring and clamping a value f computes: mirrorClamp(f) = min(1, max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping.
    mirrors and clamps to edge the texture coordinate, where mirroring and clamping to edge a value f computes: mirrorClampToEdge(f) = min(1-1/(2*N), max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping.
    Only the fractional portion of the coordinate is considered, but if the integer portion is odd, we'll use 1 - the fractional portion.
    Only the fractional portion of the coordinate is considered.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Repeat

      public static final Texture.WrapMode Repeat
      Only the fractional portion of the coordinate is considered.
    • MirroredRepeat

      public static final Texture.WrapMode MirroredRepeat
      Only the fractional portion of the coordinate is considered, but if the integer portion is odd, we'll use 1 - the fractional portion. (Introduced around OpenGL1.4) Falls back on Repeat if not supported.
    • Clamp

      public static final Texture.WrapMode Clamp
      coordinate will be clamped to [0,1]
    • MirrorClamp

      public static final Texture.WrapMode MirrorClamp
      mirrors and clamps the texture coordinate, where mirroring and clamping a value f computes: mirrorClamp(f) = min(1, max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping. (Introduced after OpenGL1.4) Falls back on Clamp if not supported.
    • BorderClamp

      public static final Texture.WrapMode BorderClamp
      coordinate will be clamped to the range [-1/(2N), 1 + 1/(2N)] where N is the size of the texture in the direction of clamping. Falls back on Clamp if not supported.
    • MirrorBorderClamp

      public static final Texture.WrapMode MirrorBorderClamp
      Wrap mode MIRROR_CLAMP_TO_BORDER_EXT mirrors and clamps to border the texture coordinate, where mirroring and clamping to border a value f computes: mirrorClampToBorder(f) = min(1+1/(2*N), max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping." (Introduced after OpenGL1.4) Falls back on BorderClamp if not supported.
    • EdgeClamp

      public static final Texture.WrapMode EdgeClamp
      coordinate will be clamped to the range [1/(2N), 1 - 1/(2N)] where N is the size of the texture in the direction of clamping. Falls back on Clamp if not supported.
    • MirrorEdgeClamp

      public static final Texture.WrapMode MirrorEdgeClamp
      mirrors and clamps to edge the texture coordinate, where mirroring and clamping to edge a value f computes: mirrorClampToEdge(f) = min(1-1/(2*N), max(1/(2*N), abs(f))) where N is the size of the one-, two-, or three-dimensional texture image in the direction of wrapping. (Introduced after OpenGL1.4) Falls back on EdgeClamp if not supported.
  • Method Details

    • values

      public static Texture.WrapMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Texture.WrapMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null