@Generated(value={"Modifiables.generator","JCGLClearSpecificationType"}) public final class JCGLClearSpecificationMutable extends Object implements JCGLClearSpecificationType
JCGLClearSpecificationType type.
Use the create() static factory methods to create new instances.
JCGLClearSpecificationMutable is not thread-safe
JCGLClearSpecification| Modifier and Type | Method and Description |
|---|---|
JCGLClearSpecificationMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static JCGLClearSpecificationMutable |
create()
Construct a modifiable instance of
JCGLClearSpecificationType. |
static JCGLClearSpecificationMutable |
create(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear,
OptionalDouble depthBufferClear,
OptionalInt stencilBufferClear,
boolean strictChecking)
Construct a modifiable instance of
JCGLClearSpecificationType. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLClearSpecificationMutable that have equal attribute values. |
JCGLClearSpecificationMutable |
from(JCGLClearSpecificationType instance)
Fill this modifiable instance with attribute values from the provided
JCGLClearSpecificationType instance. |
Optional<com.io7m.jtensors.VectorReadable4FType> |
getColorBufferClear() |
OptionalDouble |
getDepthBufferClear() |
OptionalInt |
getStencilBufferClear() |
boolean |
getStrictChecking() |
int |
hashCode()
Computes a hash code from attributes:
colorBufferClear, depthBufferClear, stencilBufferClear, strictChecking. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
JCGLClearSpecificationMutable |
setColorBufferClear(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear)
Assigns an optional value for
colorBufferClear. |
JCGLClearSpecificationMutable |
setColorBufferClear(com.io7m.jtensors.VectorReadable4FType colorBufferClear)
Assigns a present value for the optional
colorBufferClear attribute. |
JCGLClearSpecificationMutable |
setDepthBufferClear(double depthBufferClear)
Assigns a present value for the optional
depthBufferClear attribute. |
JCGLClearSpecificationMutable |
setDepthBufferClear(OptionalDouble depthBufferClear)
Assigns an optional value for
depthBufferClear. |
JCGLClearSpecificationMutable |
setStencilBufferClear(int stencilBufferClear)
Assigns a present value for the optional
stencilBufferClear attribute. |
JCGLClearSpecificationMutable |
setStencilBufferClear(OptionalInt stencilBufferClear)
Assigns an optional value for
stencilBufferClear. |
JCGLClearSpecificationMutable |
setStrictChecking(boolean strictChecking)
Assigns a value to the
strictChecking attribute. |
boolean |
strictCheckingIsSet()
Returns
true if the default attribute strictChecking is set. |
String |
toString()
Generates a string represetion of this
JCGLClearSpecificationType. |
public static JCGLClearSpecificationMutable create(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear, OptionalDouble depthBufferClear, OptionalInt stencilBufferClear, boolean strictChecking)
JCGLClearSpecificationType.colorBufferClear - The value for the colorBufferClear attributedepthBufferClear - The value for the depthBufferClear attributestencilBufferClear - The value for the stencilBufferClear attributestrictChecking - The value for the strictChecking attributepublic static JCGLClearSpecificationMutable create()
JCGLClearSpecificationType.public final Optional<com.io7m.jtensors.VectorReadable4FType> getColorBufferClear()
getColorBufferClear in interface JCGLClearSpecificationTypepublic final OptionalDouble getDepthBufferClear()
getDepthBufferClear in interface JCGLClearSpecificationTypepublic final OptionalInt getStencilBufferClear()
getStencilBufferClear in interface JCGLClearSpecificationTypepublic final boolean getStrictChecking()
getStrictChecking in interface JCGLClearSpecificationTypetrue if strict buffer checking is enabledpublic JCGLClearSpecificationMutable clear()
this for use in a chained invocationpublic JCGLClearSpecificationMutable from(JCGLClearSpecificationType instance)
JCGLClearSpecificationType 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 JCGLClearSpecificationMutable setColorBufferClear(com.io7m.jtensors.VectorReadable4FType colorBufferClear)
colorBufferClear attribute.colorBufferClear - A value for colorBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setColorBufferClear(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear)
colorBufferClear.colorBufferClear - A value for colorBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setDepthBufferClear(double depthBufferClear)
depthBufferClear attribute.depthBufferClear - A value for depthBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setDepthBufferClear(OptionalDouble depthBufferClear)
depthBufferClear.depthBufferClear - A value for depthBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setStencilBufferClear(int stencilBufferClear)
stencilBufferClear attribute.stencilBufferClear - A value for stencilBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setStencilBufferClear(OptionalInt stencilBufferClear)
stencilBufferClear.stencilBufferClear - A value for stencilBufferClearthis for use in a chained invocationpublic JCGLClearSpecificationMutable setStrictChecking(boolean strictChecking)
strictChecking attribute.
If not set, this attribute will have a default value returned by the initializer of strictChecking.
strictChecking - The value for strictCheckingthis for use in a chained invocationpublic final boolean strictCheckingIsSet()
true if the default attribute strictChecking is set.true if setpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic boolean equals(Object another)
JCGLClearSpecificationMutable that have equal attribute values.public int hashCode()
colorBufferClear, depthBufferClear, stencilBufferClear, strictChecking.Copyright © 2016 <code@io7m.com> http://io7m.com