@Generated(value={"Modifiables.generator","JCGLStencilStateType"}) public final class JCGLStencilStateMutable extends Object implements JCGLStencilStateType
JCGLStencilStateType type.
Use the create() static factory methods to create new instances.
JCGLStencilStateMutable is not thread-safe
JCGLStencilState| Modifier and Type | Method and Description |
|---|---|
JCGLStencilStateMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static JCGLStencilStateMutable |
create()
Construct a modifiable instance of
JCGLStencilStateType. |
static JCGLStencilStateMutable |
create(boolean stencilEnabled,
boolean stencilStrict,
JCGLStencilFunction testFunctionFront,
JCGLStencilFunction testFunctionBack,
int testMaskBack,
int testMaskFront,
int testReferenceBack,
int testReferenceFront,
JCGLStencilOperation operationStencilFailBack,
JCGLStencilOperation operationDepthFailBack,
JCGLStencilOperation operationPassBack,
JCGLStencilOperation operationStencilFailFront,
JCGLStencilOperation operationDepthFailFront,
JCGLStencilOperation operationPassFront,
int writeMaskFrontFaces,
int writeMaskBackFaces)
Construct a modifiable instance of
JCGLStencilStateType. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLStencilStateMutable that have equal attribute values. |
JCGLStencilStateMutable |
from(JCGLStencilStateType instance)
Fill this modifiable instance with attribute values from the provided
JCGLStencilStateType instance. |
int |
hashCode()
Computes a hash code from attributes:
stencilEnabled, stencilStrict, testFunctionFront, testFunctionBack, testMaskBack, testMaskFront, testReferenceBack, testReferenceFront, operationStencilFailBack, operationDepthFailBack, operationPassBack, operationStencilFailFront, operationDepthFailFront, operationPassFront, writeMaskFrontFaces, writeMaskBackFaces. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
JCGLStencilOperation |
operationDepthFailBack() |
boolean |
operationDepthFailBackIsSet()
Returns
true if the default attribute operationDepthFailBack is set. |
JCGLStencilOperation |
operationDepthFailFront() |
boolean |
operationDepthFailFrontIsSet()
Returns
true if the default attribute operationDepthFailFront is set. |
JCGLStencilOperation |
operationPassBack() |
boolean |
operationPassBackIsSet()
Returns
true if the default attribute operationPassBack is set. |
JCGLStencilOperation |
operationPassFront() |
boolean |
operationPassFrontIsSet()
Returns
true if the default attribute operationPassFront is set. |
JCGLStencilOperation |
operationStencilFailBack() |
boolean |
operationStencilFailBackIsSet()
Returns
true if the default attribute operationStencilFailBack is set. |
JCGLStencilOperation |
operationStencilFailFront() |
boolean |
operationStencilFailFrontIsSet()
Returns
true if the default attribute operationStencilFailFront is set. |
JCGLStencilStateMutable |
setOperationDepthFailBack(JCGLStencilOperation operationDepthFailBack)
Assigns a value to the
operationDepthFailBack attribute. |
JCGLStencilStateMutable |
setOperationDepthFailFront(JCGLStencilOperation operationDepthFailFront)
Assigns a value to the
operationDepthFailFront attribute. |
JCGLStencilStateMutable |
setOperationPassBack(JCGLStencilOperation operationPassBack)
Assigns a value to the
operationPassBack attribute. |
JCGLStencilStateMutable |
setOperationPassFront(JCGLStencilOperation operationPassFront)
Assigns a value to the
operationPassFront attribute. |
JCGLStencilStateMutable |
setOperationStencilFailBack(JCGLStencilOperation operationStencilFailBack)
Assigns a value to the
operationStencilFailBack attribute. |
JCGLStencilStateMutable |
setOperationStencilFailFront(JCGLStencilOperation operationStencilFailFront)
Assigns a value to the
operationStencilFailFront attribute. |
JCGLStencilStateMutable |
setStencilEnabled(boolean stencilEnabled)
Assigns a value to the
stencilEnabled attribute. |
JCGLStencilStateMutable |
setStencilStrict(boolean stencilStrict)
Assigns a value to the
stencilStrict attribute. |
JCGLStencilStateMutable |
setTestFunctionBack(JCGLStencilFunction testFunctionBack)
Assigns a value to the
testFunctionBack attribute. |
JCGLStencilStateMutable |
setTestFunctionFront(JCGLStencilFunction testFunctionFront)
Assigns a value to the
testFunctionFront attribute. |
JCGLStencilStateMutable |
setTestMaskBack(int testMaskBack)
Assigns a value to the
testMaskBack attribute. |
JCGLStencilStateMutable |
setTestMaskFront(int testMaskFront)
Assigns a value to the
testMaskFront attribute. |
JCGLStencilStateMutable |
setTestReferenceBack(int testReferenceBack)
Assigns a value to the
testReferenceBack attribute. |
JCGLStencilStateMutable |
setTestReferenceFront(int testReferenceFront)
Assigns a value to the
testReferenceFront attribute. |
JCGLStencilStateMutable |
setWriteMaskBackFaces(int writeMaskBackFaces)
Assigns a value to the
writeMaskBackFaces attribute. |
JCGLStencilStateMutable |
setWriteMaskFrontFaces(int writeMaskFrontFaces)
Assigns a value to the
writeMaskFrontFaces attribute. |
boolean |
stencilEnabled() |
boolean |
stencilEnabledIsSet()
Returns
true if the default attribute stencilEnabled is set. |
boolean |
stencilStrict()
Enable or disable strict mode.
|
boolean |
stencilStrictIsSet()
Returns
true if the default attribute stencilStrict is set. |
JCGLStencilFunction |
testFunctionBack() |
boolean |
testFunctionBackIsSet()
Returns
true if the default attribute testFunctionBack is set. |
JCGLStencilFunction |
testFunctionFront() |
boolean |
testFunctionFrontIsSet()
Returns
true if the default attribute testFunctionFront is set. |
int |
testMaskBack() |
boolean |
testMaskBackIsSet()
Returns
true if the default attribute testMaskBack is set. |
int |
testMaskFront() |
boolean |
testMaskFrontIsSet()
Returns
true if the default attribute testMaskFront is set. |
int |
testReferenceBack() |
boolean |
testReferenceBackIsSet()
Returns
true if the default attribute testReferenceBack is set. |
int |
testReferenceFront() |
boolean |
testReferenceFrontIsSet()
Returns
true if the default attribute testReferenceFront is set. |
JCGLStencilState |
toImmutable()
Converts to
JCGLStencilState. |
String |
toString()
Generates a string representation of this
JCGLStencilStateType. |
JCGLStencilStateMutable |
unsetStencilEnabled()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetStencilStrict()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetTestMaskBack()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetTestMaskFront()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetTestReferenceBack()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetTestReferenceFront()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetWriteMaskBackFaces()
Reset an attribute to its initial value.
|
JCGLStencilStateMutable |
unsetWriteMaskFrontFaces()
Reset an attribute to its initial value.
|
int |
writeMaskBackFaces() |
boolean |
writeMaskBackFacesIsSet()
Returns
true if the default attribute writeMaskBackFaces is set. |
int |
writeMaskFrontFaces() |
boolean |
writeMaskFrontFacesIsSet()
Returns
true if the default attribute writeMaskFrontFaces is set. |
public static JCGLStencilStateMutable create(boolean stencilEnabled, boolean stencilStrict, JCGLStencilFunction testFunctionFront, JCGLStencilFunction testFunctionBack, int testMaskBack, int testMaskFront, int testReferenceBack, int testReferenceFront, JCGLStencilOperation operationStencilFailBack, JCGLStencilOperation operationDepthFailBack, JCGLStencilOperation operationPassBack, JCGLStencilOperation operationStencilFailFront, JCGLStencilOperation operationDepthFailFront, JCGLStencilOperation operationPassFront, int writeMaskFrontFaces, int writeMaskBackFaces)
JCGLStencilStateType.stencilEnabled - The value for the stencilEnabled attributestencilStrict - The value for the stencilStrict attributetestFunctionFront - The value for the testFunctionFront attributetestFunctionBack - The value for the testFunctionBack attributetestMaskBack - The value for the testMaskBack attributetestMaskFront - The value for the testMaskFront attributetestReferenceBack - The value for the testReferenceBack attributetestReferenceFront - The value for the testReferenceFront attributeoperationStencilFailBack - The value for the operationStencilFailBack attributeoperationDepthFailBack - The value for the operationDepthFailBack attributeoperationPassBack - The value for the operationPassBack attributeoperationStencilFailFront - The value for the operationStencilFailFront attributeoperationDepthFailFront - The value for the operationDepthFailFront attributeoperationPassFront - The value for the operationPassFront attributewriteMaskFrontFaces - The value for the writeMaskFrontFaces attributewriteMaskBackFaces - The value for the writeMaskBackFaces attributepublic static JCGLStencilStateMutable create()
JCGLStencilStateType.public final boolean stencilEnabled()
stencilEnabled in interface JCGLStencilStateTypetrue if stencilling is enabledpublic final boolean stencilStrict()
stencilStrict in interface JCGLStencilStateTypetrue iff strict mode is enabledpublic final JCGLStencilFunction testFunctionFront()
testFunctionFront in interface JCGLStencilStateTypepublic final JCGLStencilFunction testFunctionBack()
testFunctionBack in interface JCGLStencilStateTypepublic final int testMaskBack()
testMaskBack in interface JCGLStencilStateTypepublic final int testMaskFront()
testMaskFront in interface JCGLStencilStateTypepublic final int testReferenceBack()
testReferenceBack in interface JCGLStencilStateTypepublic final int testReferenceFront()
testReferenceFront in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationStencilFailBack()
operationStencilFailBack in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationDepthFailBack()
operationDepthFailBack in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationPassBack()
operationPassBack in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationStencilFailFront()
operationStencilFailFront in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationDepthFailFront()
operationDepthFailFront in interface JCGLStencilStateTypepublic final JCGLStencilOperation operationPassFront()
operationPassFront in interface JCGLStencilStateTypepublic final int writeMaskFrontFaces()
writeMaskFrontFaces in interface JCGLStencilStateTypepublic final int writeMaskBackFaces()
writeMaskBackFaces in interface JCGLStencilStateTypepublic JCGLStencilStateMutable clear()
this for use in a chained invocationpublic JCGLStencilStateMutable from(JCGLStencilStateType instance)
JCGLStencilStateType instance.
Regular attribute values will be overridden, i.e. replaced with ones of an instance.
Any of the instance's absent optional values will not be copied (will not override current values).instance - The instance from which to copy valuesthis for use in a chained invocationpublic JCGLStencilStateMutable setStencilEnabled(boolean stencilEnabled)
stencilEnabled attribute.
If not set, this attribute will have a default value returned by the initializer of stencilEnabled.
stencilEnabled - The value for stencilEnabledthis for use in a chained invocationpublic JCGLStencilStateMutable setStencilStrict(boolean stencilStrict)
stencilStrict attribute.
If not set, this attribute will have a default value returned by the initializer of stencilStrict.
stencilStrict - The value for stencilStrictthis for use in a chained invocationpublic JCGLStencilStateMutable setTestFunctionFront(JCGLStencilFunction testFunctionFront)
testFunctionFront attribute.
If not set, this attribute will have a default value returned by the initializer of testFunctionFront.
testFunctionFront - The value for testFunctionFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setTestFunctionBack(JCGLStencilFunction testFunctionBack)
testFunctionBack attribute.
If not set, this attribute will have a default value returned by the initializer of testFunctionBack.
testFunctionBack - The value for testFunctionBackthis for use in a chained invocationpublic JCGLStencilStateMutable setTestMaskBack(int testMaskBack)
testMaskBack attribute.
If not set, this attribute will have a default value returned by the initializer of testMaskBack.
testMaskBack - The value for testMaskBackthis for use in a chained invocationpublic JCGLStencilStateMutable setTestMaskFront(int testMaskFront)
testMaskFront attribute.
If not set, this attribute will have a default value returned by the initializer of testMaskFront.
testMaskFront - The value for testMaskFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setTestReferenceBack(int testReferenceBack)
testReferenceBack attribute.
If not set, this attribute will have a default value returned by the initializer of testReferenceBack.
testReferenceBack - The value for testReferenceBackthis for use in a chained invocationpublic JCGLStencilStateMutable setTestReferenceFront(int testReferenceFront)
testReferenceFront attribute.
If not set, this attribute will have a default value returned by the initializer of testReferenceFront.
testReferenceFront - The value for testReferenceFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationStencilFailBack(JCGLStencilOperation operationStencilFailBack)
operationStencilFailBack attribute.
If not set, this attribute will have a default value returned by the initializer of operationStencilFailBack.
operationStencilFailBack - The value for operationStencilFailBackthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationDepthFailBack(JCGLStencilOperation operationDepthFailBack)
operationDepthFailBack attribute.
If not set, this attribute will have a default value returned by the initializer of operationDepthFailBack.
operationDepthFailBack - The value for operationDepthFailBackthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationPassBack(JCGLStencilOperation operationPassBack)
operationPassBack attribute.
If not set, this attribute will have a default value returned by the initializer of operationPassBack.
operationPassBack - The value for operationPassBackthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationStencilFailFront(JCGLStencilOperation operationStencilFailFront)
operationStencilFailFront attribute.
If not set, this attribute will have a default value returned by the initializer of operationStencilFailFront.
operationStencilFailFront - The value for operationStencilFailFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationDepthFailFront(JCGLStencilOperation operationDepthFailFront)
operationDepthFailFront attribute.
If not set, this attribute will have a default value returned by the initializer of operationDepthFailFront.
operationDepthFailFront - The value for operationDepthFailFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setOperationPassFront(JCGLStencilOperation operationPassFront)
operationPassFront attribute.
If not set, this attribute will have a default value returned by the initializer of operationPassFront.
operationPassFront - The value for operationPassFrontthis for use in a chained invocationpublic JCGLStencilStateMutable setWriteMaskFrontFaces(int writeMaskFrontFaces)
writeMaskFrontFaces attribute.
If not set, this attribute will have a default value returned by the initializer of writeMaskFrontFaces.
writeMaskFrontFaces - The value for writeMaskFrontFacesthis for use in a chained invocationpublic JCGLStencilStateMutable setWriteMaskBackFaces(int writeMaskBackFaces)
writeMaskBackFaces attribute.
If not set, this attribute will have a default value returned by the initializer of writeMaskBackFaces.
writeMaskBackFaces - The value for writeMaskBackFacesthis for use in a chained invocationpublic final boolean stencilEnabledIsSet()
true if the default attribute stencilEnabled is set.true if setpublic final boolean stencilStrictIsSet()
true if the default attribute stencilStrict is set.true if setpublic final boolean testMaskBackIsSet()
true if the default attribute testMaskBack is set.true if setpublic final boolean testMaskFrontIsSet()
true if the default attribute testMaskFront is set.true if setpublic final boolean testReferenceBackIsSet()
true if the default attribute testReferenceBack is set.true if setpublic final boolean testReferenceFrontIsSet()
true if the default attribute testReferenceFront is set.true if setpublic final boolean writeMaskFrontFacesIsSet()
true if the default attribute writeMaskFrontFaces is set.true if setpublic final boolean writeMaskBackFacesIsSet()
true if the default attribute writeMaskBackFaces is set.true if setpublic final boolean testFunctionFrontIsSet()
true if the default attribute testFunctionFront is set.true if setpublic final boolean testFunctionBackIsSet()
true if the default attribute testFunctionBack is set.true if setpublic final boolean operationStencilFailBackIsSet()
true if the default attribute operationStencilFailBack is set.true if setpublic final boolean operationDepthFailBackIsSet()
true if the default attribute operationDepthFailBack is set.true if setpublic final boolean operationPassBackIsSet()
true if the default attribute operationPassBack is set.true if setpublic final boolean operationStencilFailFrontIsSet()
true if the default attribute operationStencilFailFront is set.true if setpublic final boolean operationDepthFailFrontIsSet()
true if the default attribute operationDepthFailFront is set.true if setpublic final boolean operationPassFrontIsSet()
true if the default attribute operationPassFront is set.true if setpublic final JCGLStencilStateMutable unsetStencilEnabled()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetStencilStrict()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetTestMaskBack()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetTestMaskFront()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetTestReferenceBack()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetTestReferenceFront()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetWriteMaskFrontFaces()
this for use in a chained invocationpublic final JCGLStencilStateMutable unsetWriteMaskBackFaces()
this for use in a chained invocationpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final JCGLStencilState toImmutable()
JCGLStencilState.public boolean equals(Object another)
JCGLStencilStateMutable that have equal attribute values.public int hashCode()
stencilEnabled, stencilStrict, testFunctionFront, testFunctionBack, testMaskBack, testMaskFront, testReferenceBack, testReferenceFront, operationStencilFailBack, operationDepthFailBack, operationPassBack, operationStencilFailFront, operationDepthFailFront, operationPassFront, writeMaskFrontFaces, writeMaskBackFaces.Copyright © 2017 <code@io7m.com> http://io7m.com