Enum Class VertexArrayBuilder.DataType
java.lang.Object
java.lang.Enum<VertexArrayBuilder.DataType>
foundry.veil.api.client.render.vertex.VertexArrayBuilder.DataType
- All Implemented Interfaces:
Serializable
,Comparable<VertexArrayBuilder.DataType>
,Constable
- Enclosing interface:
VertexArrayBuilder
Possible data type for vertex attributes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexArrayBuilder.DataType
fromType
(com.mojang.blaze3d.vertex.VertexFormatElement.Type type) Converts a Mojang type to this type.int
boolean
Checks if this data type is supported on this platform.static VertexArrayBuilder.DataType
Returns the enum constant of this class with the specified name.static VertexArrayBuilder.DataType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BYTE
-
SHORT
-
INT
-
FIXED
-
FLOAT
-
HALF_FLOAT
-
DOUBLE
-
UNSIGNED_BYTE
-
UNSIGNED_SHORT
-
UNSIGNED_INT
-
INT_2_10_10_10_REV
-
UNSIGNED_INT_2_10_10_10_REV
-
UNSIGNED_INT_10F_11F_11F_REV
-
UNSIGNED_INT64_ARB
- Since:
- 2.0.0
-
-
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
-
isSupported
public boolean isSupported()Checks if this data type is supported on this platform.- Returns:
- Whether this data type is supported
- Since:
- 2.0.0
-
getGlType
public int getGlType()- Returns:
- The OpenGL data type of this type
-
fromType
public static VertexArrayBuilder.DataType fromType(com.mojang.blaze3d.vertex.VertexFormatElement.Type type) Converts a Mojang type to this type.- Parameters:
type
- The type to convert- Returns:
- The associated type
-