Package icyllis.modernui.graphics
Enum Class Shader.TileMode
- All Implemented Interfaces:
Serializable
,Comparable<Shader.TileMode>
,Constable
- Enclosing class:
Shader
Tile modes, also known as address modes and wrap modes. The tile mode specifies
behavior of sampling with texture coordinates outside the image bounds.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionReplicate the edge color if the shader draws outside of its original bounds.Render the shader's image pixels only within its original bounds.Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam.Repeat the shader's image horizontally and vertically. -
Method Summary
Modifier and TypeMethodDescriptionstatic Shader.TileMode
Returns the enum constant of this class with the specified name.static Shader.TileMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPEAT
Repeat the shader's image horizontally and vertically. -
MIRROR
Repeat the shader's image horizontally and vertically, alternating mirror images so that adjacent images always seam. -
CLAMP
Replicate the edge color if the shader draws outside of its original bounds. -
DECAL
Render the shader's image pixels only within its original bounds. If the shader draws outside of its original bounds, transparent black is drawn instead.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-