|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.neovisionaries.android.opengl.StencilComparator
public class StencilComparator
Comparator used for the stencil test.
StencilComparisonOperator,
glStencilFunc,
glStencilFuncSeparate| Constructor Summary | |
|---|---|
StencilComparator()
This constructor is an alias of StencilComparator(null,
0, 0xffffffff). |
|
StencilComparator(StencilComparator comparator)
A copy constructor. |
|
StencilComparator(StencilComparisonOperator operator,
int referenceValue,
int mask)
A constructor to define the function for the stencil test. |
|
| Method Summary | |
|---|---|
int |
getMask()
Get the bit mask. |
StencilComparisonOperator |
getOperator()
Get the comparison operator. |
int |
getReferenceValue()
Get the reference value. |
StencilComparator |
setMask(int mask)
Set a bit mask. |
StencilComparator |
setOperator(StencilComparisonOperator operator)
Set a comparison operator. |
StencilComparator |
setReferenceValue(int referenceValue)
Set a reference value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StencilComparator()
StencilComparator(null,
0, 0xffffffff).
public StencilComparator(StencilComparisonOperator operator,
int referenceValue,
int mask)
operator - A comparison operator. If null is given, StencilComparisonOperator.ALWAYS is used.referenceValue - A reference value used for the comparison.mask - A bit mask that is logical-ANDed with the bits
of the stencil buffer.public StencilComparator(StencilComparator comparator)
comparator - A comparator to copy from. If null is given,
ALWAYS,
0 and 0xffffffff are used as operator, reference
value and mask, respectively.| Method Detail |
|---|
public StencilComparisonOperator getOperator()
public StencilComparator setOperator(StencilComparisonOperator operator)
operator - A comparison operator. If null is given, StencilComparisonOperator.ALWAYS is set.
public int getReferenceValue()
public StencilComparator setReferenceValue(int referenceValue)
referenceValue - A reference value used for the comparison.
public int getMask()
public StencilComparator setMask(int mask)
mask - A bit mask that is logical-ANDed with the bits
of the stencil buffer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||