@Generated(value={"Modifiables.generator","JCGLDepthStateType"}) public final class JCGLDepthStateMutable extends Object implements JCGLDepthStateType
JCGLDepthStateType type.
Use the create() static factory methods to create new instances.
JCGLDepthStateMutable is not thread-safe
JCGLDepthState| Modifier and Type | Method and Description |
|---|---|
JCGLDepthStateMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static JCGLDepthStateMutable |
create()
Construct a modifiable instance of
JCGLDepthStateType. |
static JCGLDepthStateMutable |
create(JCGLDepthStrict depthStrict,
Optional<JCGLDepthFunction> depthTest,
JCGLDepthWriting depthWrite,
JCGLDepthClamping depthClamp)
Construct a modifiable instance of
JCGLDepthStateType. |
JCGLDepthClamping |
depthClamp() |
boolean |
depthClampIsSet()
Returns
true if the default attribute depthClamp is set. |
JCGLDepthStrict |
depthStrict()
Enable or disable strict mode.
|
boolean |
depthStrictIsSet()
Returns
true if the default attribute depthStrict is set. |
Optional<JCGLDepthFunction> |
depthTest() |
JCGLDepthWriting |
depthWrite() |
boolean |
depthWriteIsSet()
Returns
true if the default attribute depthWrite is set. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLDepthStateMutable that have equal attribute values. |
JCGLDepthStateMutable |
from(JCGLDepthStateType instance)
Fill this modifiable instance with attribute values from the provided
JCGLDepthStateType instance. |
int |
hashCode()
Computes a hash code from attributes:
depthStrict, depthTest, depthWrite, depthClamp. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
JCGLDepthStateMutable |
setDepthClamp(JCGLDepthClamping depthClamp)
Assigns a value to the
depthClamp attribute. |
JCGLDepthStateMutable |
setDepthStrict(JCGLDepthStrict depthStrict)
Assigns a value to the
depthStrict attribute. |
JCGLDepthStateMutable |
setDepthTest(JCGLDepthFunction depthTest)
Assigns a present value for the optional
depthTest attribute. |
JCGLDepthStateMutable |
setDepthTest(Optional<JCGLDepthFunction> depthTest)
Assigns an optional value for
depthTest. |
JCGLDepthStateMutable |
setDepthWrite(JCGLDepthWriting depthWrite)
Assigns a value to the
depthWrite attribute. |
JCGLDepthState |
toImmutable()
Converts to
JCGLDepthState. |
String |
toString()
Generates a string representation of this
JCGLDepthStateType. |
public static JCGLDepthStateMutable create(JCGLDepthStrict depthStrict, Optional<JCGLDepthFunction> depthTest, JCGLDepthWriting depthWrite, JCGLDepthClamping depthClamp)
JCGLDepthStateType.depthStrict - The value for the depthStrict attributedepthTest - The value for the depthTest attributedepthWrite - The value for the depthWrite attributedepthClamp - The value for the depthClamp attributepublic static JCGLDepthStateMutable create()
JCGLDepthStateType.public final JCGLDepthStrict depthStrict()
depthStrict in interface JCGLDepthStateTypeJCGLDepthStrict.DEPTH_STRICT_ENABLED iff strict mode is
enabledpublic final Optional<JCGLDepthFunction> depthTest()
depthTest in interface JCGLDepthStateTypepublic final JCGLDepthWriting depthWrite()
depthWrite in interface JCGLDepthStateTypeJCGLDepthWriting.DEPTH_WRITE_ENABLED if depth writing is
enabledpublic final JCGLDepthClamping depthClamp()
depthClamp in interface JCGLDepthStateTypeJCGLDepthClamping.DEPTH_CLAMP_ENABLED if depth clamping is
enabledpublic JCGLDepthStateMutable clear()
this for use in a chained invocationpublic JCGLDepthStateMutable from(JCGLDepthStateType instance)
JCGLDepthStateType 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 JCGLDepthStateMutable setDepthStrict(JCGLDepthStrict depthStrict)
depthStrict attribute.
If not set, this attribute will have a default value returned by the initializer of depthStrict.
depthStrict - The value for depthStrictthis for use in a chained invocationpublic JCGLDepthStateMutable setDepthTest(JCGLDepthFunction depthTest)
depthTest attribute.depthTest - A value for depthTestthis for use in a chained invocationpublic JCGLDepthStateMutable setDepthTest(Optional<JCGLDepthFunction> depthTest)
depthTest.depthTest - A value for depthTestthis for use in a chained invocationpublic JCGLDepthStateMutable setDepthWrite(JCGLDepthWriting depthWrite)
depthWrite attribute.
If not set, this attribute will have a default value returned by the initializer of depthWrite.
depthWrite - The value for depthWritethis for use in a chained invocationpublic JCGLDepthStateMutable setDepthClamp(JCGLDepthClamping depthClamp)
depthClamp attribute.
If not set, this attribute will have a default value returned by the initializer of depthClamp.
depthClamp - The value for depthClampthis for use in a chained invocationpublic final boolean depthStrictIsSet()
true if the default attribute depthStrict is set.true if setpublic final boolean depthWriteIsSet()
true if the default attribute depthWrite is set.true if setpublic final boolean depthClampIsSet()
true if the default attribute depthClamp is set.true if setpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final JCGLDepthState toImmutable()
JCGLDepthState.public boolean equals(Object another)
JCGLDepthStateMutable that have equal attribute values.public int hashCode()
depthStrict, depthTest, depthWrite, depthClamp.Copyright © 2017 <code@io7m.com> http://io7m.com