com.badlogic.gdx.graphics.g3d.attributes
Class DepthTestAttribute
java.lang.Object
com.badlogic.gdx.graphics.g3d.Attribute
com.badlogic.gdx.graphics.g3d.attributes.DepthTestAttribute
public class DepthTestAttribute
- extends Attribute
Field Summary |
static String |
Alias
|
int |
depthFunc
The depth test function, or 0 to disable depth test (default: GL10.GL_LEQUAL) |
boolean |
depthMask
Whether to write to the depth mask, only applicable if depthFunc is non zero (default: true) |
float |
depthRangeFar
Mapping of far clipping plane to window coordinates (default: 1) |
float |
depthRangeNear
Mapping of near clipping plane to window coordinates (default: 0) |
static long |
Type
|
Fields inherited from class com.badlogic.gdx.graphics.g3d.Attribute |
type |
Constructor Summary |
DepthTestAttribute()
|
DepthTestAttribute(boolean depthMask)
|
DepthTestAttribute(DepthTestAttribute rhs)
|
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)
|
Alias
public static final String Alias
- See Also:
- Constant Field Values
Type
public static final long Type
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 mask, only applicable if depthFunc is non zero (default: true)
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)
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
Copyright © 2013. All Rights Reserved.