Package graphics
Enum Class Primitive
- All Implemented Interfaces:
Serializable
,Comparable<Primitive>
,Constable
Azurite
A primitive is a simple shape that contains all the information necessary to prepare an element buffer of that primitive's type. The primitives available are:- Quadrilateral
- Line
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
Number of elements in the primitivefinal BiConsumer<IntBuffer,
Integer> Puts index data in the provided int bufferfinal int
Primitive ID that opengl expectsfinal int
Number of vertices in the primitive -
Method Summary
-
Enum Constant Details
-
QUAD
-
LINE
-
-
Field Details
-
vertexCount
public final int vertexCountNumber of vertices in the primitive -
elementCount
public final int elementCountNumber of elements in the primitive -
openglPrimitive
public final int openglPrimitivePrimitive ID that opengl expects -
elementCreation
Puts index data in the provided int buffer
-
-
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
-