Class DepthTestAttribute

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

    public class DepthTestAttribute
    extends Attribute
    • Field Detail

      • Type

        public static final long Type
      • Mask

        protected static long Mask
      • depthFunc

        public int depthFunc
        The depth test function, or 0 to disable depth test (default: GL10.GL_LEQUAL)
      • depthRangeNear

        public float depthRangeNear
        Mapping of near clipping plane to window coordinates (default: 0)
      • depthRangeFar

        public float depthRangeFar
        Mapping of far clipping plane to window coordinates (default: 1)
      • depthMask

        public boolean depthMask
        Whether to write to the depth buffer (default: true)
    • Constructor Detail

      • DepthTestAttribute

        public DepthTestAttribute()
      • DepthTestAttribute

        public DepthTestAttribute​(boolean depthMask)
      • DepthTestAttribute

        public DepthTestAttribute​(int depthFunc)
      • DepthTestAttribute

        public DepthTestAttribute​(int depthFunc,
                                  boolean depthMask)
      • DepthTestAttribute

        public DepthTestAttribute​(int depthFunc,
                                  float depthRangeNear,
                                  float depthRangeFar)
      • DepthTestAttribute

        public DepthTestAttribute​(int depthFunc,
                                  float depthRangeNear,
                                  float depthRangeFar,
                                  boolean depthMask)
      • DepthTestAttribute

        public DepthTestAttribute​(long type,
                                  int depthFunc,
                                  float depthRangeNear,
                                  float depthRangeFar,
                                  boolean depthMask)
    • Method Detail

      • is

        public static final boolean is​(long mask)
      • copy

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

        public int compareTo​(Attribute o)