public static final class JCGLDepthState.Builder extends Object
JCGLDepthState.
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 |
|---|---|
JCGLDepthState |
build()
Builds a new
JCGLDepthState. |
JCGLDepthState.Builder |
from(JCGLDepthStateType instance)
Fill a builder with attribute values from the provided
JCGLDepthStateType instance. |
JCGLDepthState.Builder |
setDepthClamp(JCGLDepthClamping depthClamp)
Initializes the value for the
depthClamp attribute. |
JCGLDepthState.Builder |
setDepthStrict(JCGLDepthStrict depthStrict)
Initializes the value for the
depthStrict attribute. |
JCGLDepthState.Builder |
setDepthTest(JCGLDepthFunction depthTest)
Initializes the optional value
depthTest to depthTest. |
JCGLDepthState.Builder |
setDepthTest(Optional<? extends JCGLDepthFunction> depthTest)
Initializes the optional value
depthTest to depthTest. |
JCGLDepthState.Builder |
setDepthWrite(JCGLDepthWriting depthWrite)
Initializes the value for the
depthWrite attribute. |
public final JCGLDepthState.Builder from(JCGLDepthStateType instance)
JCGLDepthStateType 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 JCGLDepthState.Builder setDepthStrict(JCGLDepthStrict depthStrict)
depthStrict attribute.
If not set, this attribute will have a default value as returned by the initializer of depthStrict.
depthStrict - The value for depthStrictthis builder for use in a chained invocationpublic final JCGLDepthState.Builder setDepthTest(JCGLDepthFunction depthTest)
depthTest to depthTest.depthTest - The value for depthTestthis builder for chained invocationpublic final JCGLDepthState.Builder setDepthTest(Optional<? extends JCGLDepthFunction> depthTest)
depthTest to depthTest.depthTest - The value for depthTestthis builder for use in a chained invocationpublic final JCGLDepthState.Builder setDepthWrite(JCGLDepthWriting depthWrite)
depthWrite attribute.
If not set, this attribute will have a default value as returned by the initializer of depthWrite.
depthWrite - The value for depthWritethis builder for use in a chained invocationpublic final JCGLDepthState.Builder setDepthClamp(JCGLDepthClamping depthClamp)
depthClamp attribute.
If not set, this attribute will have a default value as returned by the initializer of depthClamp.
depthClamp - The value for depthClampthis builder for use in a chained invocationpublic JCGLDepthState build()
JCGLDepthState.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com