Enum Class DrawingMode

java.lang.Object
java.lang.Enum<DrawingMode>
xyz.gmitch215.socketmc.util.render.DrawingMode
All Implemented Interfaces:
Serializable, Comparable<DrawingMode>, Constable

public enum DrawingMode extends Enum<DrawingMode>
Represents the drawing mode for a shape.
  • Enum Constant Details

    • LINES

      public static final DrawingMode LINES
      Each element is made up of two vertices, forming a line.
    • LINE_STRIP

      public static final DrawingMode LINE_STRIP
      The first element requires two vertices, and each subsequent element requires one more vertex. This forms a continuous line that bends at different places.
    • TRIANGLES

      public static final DrawingMode TRIANGLES
      Each element requires three vertices, forming a triangle.
    • TRIANGLE_STRIP

      public static final DrawingMode TRIANGLE_STRIP
      The first element requires three vertices forming the first triangle. Each additional vertex forms a new triangle with the last two vertices.
    • TRIANGLE_FAN

      public static final DrawingMode TRIANGLE_FAN
      The first element requires three vertices forming the first triangle. Each additional vertex forms a new triangle with the first vertex and the last vertex.
    • QUADRILATERALS

      public static final DrawingMode QUADRILATERALS
      Each element requires four vertices, forming a quadrilateral.
  • Method Details

    • values

      public static DrawingMode[] 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 DrawingMode 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