Class IntAttribute

  • All Implemented Interfaces:
    java.lang.Comparable<Attribute>

    public class IntAttribute
    extends Attribute
    • Field Detail

      • CullFace

        public static final long CullFace
      • value

        public int value
    • Constructor Detail

      • IntAttribute

        public IntAttribute​(long type)
      • IntAttribute

        public IntAttribute​(long type,
                            int value)
    • Method Detail

      • createCullFace

        public static IntAttribute createCullFace​(int value)
        create a cull face attribute to be used in a material
        Parameters:
        value - cull face value, possible values are 0 (render both faces), GL_FRONT_AND_BACK (render nothing), GL_BACK (render front faces only), GL_FRONT (render back faces only), or -1 to inherit default
        Returns:
        an attribute
      • copy

        public Attribute copy()
        Specified by:
        copy in class Attribute
        Returns:
        An exact copy of this attribute
      • compareTo

        public int compareTo​(Attribute o)