public static final class JCGLClearSpecification.Builder extends Object
JCGLClearSpecification.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
JCGLClearSpecification |
build()
Builds a new
JCGLClearSpecification. |
JCGLClearSpecification.Builder |
from(JCGLClearSpecificationType instance)
Fill a builder with attribute values from the provided
JCGLClearSpecificationType instance. |
JCGLClearSpecification.Builder |
setColorBufferClear(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear)
Initializes the optional value
colorBufferClear to colorBufferClear. |
JCGLClearSpecification.Builder |
setColorBufferClear(com.io7m.jtensors.VectorReadable4FType colorBufferClear)
Initializes the optional value
colorBufferClear to colorBufferClear. |
JCGLClearSpecification.Builder |
setDepthBufferClear(double depthBufferClear)
Initializes the optional value
depthBufferClear to depthBufferClear. |
JCGLClearSpecification.Builder |
setDepthBufferClear(OptionalDouble depthBufferClear)
Initializes the optional value
depthBufferClear to depthBufferClear. |
JCGLClearSpecification.Builder |
setStencilBufferClear(int stencilBufferClear)
Initializes the optional value
stencilBufferClear to stencilBufferClear. |
JCGLClearSpecification.Builder |
setStencilBufferClear(OptionalInt stencilBufferClear)
Initializes the optional value
stencilBufferClear to stencilBufferClear. |
JCGLClearSpecification.Builder |
setStrictChecking(boolean strictChecking)
Initializes the value for the
strictChecking attribute. |
public final JCGLClearSpecification.Builder from(JCGLClearSpecificationType instance)
JCGLClearSpecificationType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JCGLClearSpecification.Builder setColorBufferClear(com.io7m.jtensors.VectorReadable4FType colorBufferClear)
colorBufferClear to colorBufferClear.colorBufferClear - The value for colorBufferClearthis builder for chained invocationpublic final JCGLClearSpecification.Builder setColorBufferClear(Optional<com.io7m.jtensors.VectorReadable4FType> colorBufferClear)
colorBufferClear to colorBufferClear.colorBufferClear - The value for colorBufferClearthis builder for use in a chained invocationpublic final JCGLClearSpecification.Builder setDepthBufferClear(double depthBufferClear)
depthBufferClear to depthBufferClear.depthBufferClear - The value for depthBufferClearthis builder for chained invocationpublic final JCGLClearSpecification.Builder setDepthBufferClear(OptionalDouble depthBufferClear)
depthBufferClear to depthBufferClear.depthBufferClear - The value for depthBufferClearthis builder for use in a chained invocationpublic final JCGLClearSpecification.Builder setStencilBufferClear(int stencilBufferClear)
stencilBufferClear to stencilBufferClear.stencilBufferClear - The value for stencilBufferClearthis builder for chained invocationpublic final JCGLClearSpecification.Builder setStencilBufferClear(OptionalInt stencilBufferClear)
stencilBufferClear to stencilBufferClear.stencilBufferClear - The value for stencilBufferClearthis builder for use in a chained invocationpublic final JCGLClearSpecification.Builder setStrictChecking(boolean strictChecking)
strictChecking attribute.
If not set, this attribute will have a default value as returned by the initializer of strictChecking.
strictChecking - The value for strictCheckingthis builder for use in a chained invocationpublic JCGLClearSpecification build() throws IllegalStateException
JCGLClearSpecification.IllegalStateException - if any required attributes are missingCopyright © 2015 <code@io7m.com> http://io7m.com