Class DepthTestAttribute
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.Attribute
-
- com.badlogic.gdx.graphics.g3d.attributes.DepthTestAttribute
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAliasintdepthFuncThe depth test function, or 0 to disable depth test (default: GL10.GL_LEQUAL)booleandepthMaskWhether to write to the depth buffer (default: true)floatdepthRangeFarMapping of far clipping plane to window coordinates (default: 1)floatdepthRangeNearMapping of near clipping plane to window coordinates (default: 0)protected static longMaskstatic longType
-
Constructor Summary
Constructors Constructor Description DepthTestAttribute()DepthTestAttribute(boolean depthMask)DepthTestAttribute(int depthFunc)DepthTestAttribute(int depthFunc, boolean depthMask)DepthTestAttribute(int depthFunc, float depthRangeNear, float depthRangeFar)DepthTestAttribute(int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask)DepthTestAttribute(long type, int depthFunc, float depthRangeNear, float depthRangeFar, boolean depthMask)DepthTestAttribute(DepthTestAttribute rhs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Attribute o)Attributecopy()inthashCode()static booleanis(long mask)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.Attribute
equals, equals, getAttributeAlias, getAttributeType, register, toString
-
-
-
-
Field Detail
-
Alias
public static final java.lang.String Alias
- See Also:
- Constant Field Values
-
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)
-
DepthTestAttribute
public DepthTestAttribute(DepthTestAttribute rhs)
-
-