Microsoft.Xna.Framework.Graphics
Enum TextureAddressMode

java.lang.Object
  extended by java.lang.Enum<TextureAddressMode>
      extended by Microsoft.Xna.Framework.Graphics.TextureAddressMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextureAddressMode>

public enum TextureAddressMode
extends java.lang.Enum<TextureAddressMode>

Defines modes for addressing texels using texture coordinates that are outside of the typical range of 0.0 to 1.0.

Author:
Halofreak1990

Enum Constant Summary
Clamp
          Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.
Mirror
          Similar to Wrap, except that the texture is flipped at every integer junction.
Wrap
          Tile the texture at every integer junction.
 
Method Summary
static TextureAddressMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextureAddressMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Wrap

public static final TextureAddressMode Wrap
Tile the texture at every integer junction. For example, for u values between 0 and 3, the texture is repeated three times; no mirroring is performed.


Clamp

public static final TextureAddressMode Clamp
Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.


Mirror

public static final TextureAddressMode Mirror
Similar to Wrap, except that the texture is flipped at every integer junction. For u values between 0 and 1, for example, the texture is addressed normally; between 1 and 2, the texture is flipped (mirrored); between 2 and 3, the texture is normal again, and so on.

Method Detail

values

public static TextureAddressMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TextureAddressMode c : TextureAddressMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TextureAddressMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null