M - The type of shader parameters@Generated(value={"Immutables.generator","R2TranslucentBillboardedType<M>"}) public final class R2TranslucentBillboarded<M> extends Object implements R2TranslucentBillboardedType<M>
| Modifier and Type | Class and Description |
|---|---|
static class |
R2TranslucentBillboarded.Builder<M>
Builds instances of type
R2TranslucentBillboarded. |
| Modifier and Type | Method and Description |
|---|---|
Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> |
blending() |
static <M> R2TranslucentBillboarded.Builder<M> |
builder()
Creates a builder for
R2TranslucentBillboarded. |
static <M> R2TranslucentBillboarded<M> |
copyOf(R2TranslucentBillboardedType<M> instance)
Creates an immutable copy of a
R2TranslucentBillboardedType value. |
com.io7m.jcanephora.renderstate.JCGLCullingState |
culling() |
boolean |
equals(Object another)
This instance is equal to all instances of
R2TranslucentBillboarded that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
instance, shader, shaderParameters, blending, culling. |
R2InstanceBillboardedType |
instance() |
static <M> R2TranslucentBillboarded<M> |
of(R2InstanceBillboardedType instance,
R2ShaderTranslucentInstanceBillboardedType<M> shader,
M shaderParameters,
Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending,
com.io7m.jcanephora.renderstate.JCGLCullingState culling)
Construct a new immutable
R2TranslucentBillboarded instance. |
R2ShaderTranslucentInstanceBillboardedType<M> |
shader() |
M |
shaderParameters() |
String |
toString()
Prints the immutable value
R2TranslucentBillboarded with attribute values. |
R2TranslucentBillboarded<M> |
withBlending(com.io7m.jcanephora.renderstate.JCGLBlendState value)
Copy the current immutable object by setting a present value for the optional
blending attribute. |
R2TranslucentBillboarded<M> |
withBlending(Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> optional)
Copy the current immutable object by setting an optional value for the
blending attribute. |
R2TranslucentBillboarded<M> |
withCulling(com.io7m.jcanephora.renderstate.JCGLCullingState value)
Copy the current immutable object by setting a value for the
culling attribute. |
R2TranslucentBillboarded<M> |
withInstance(R2InstanceBillboardedType value)
Copy the current immutable object by setting a value for the
instance attribute. |
R2TranslucentBillboarded<M> |
withShader(R2ShaderTranslucentInstanceBillboardedType<M> value)
Copy the current immutable object by setting a value for the
shader attribute. |
R2TranslucentBillboarded<M> |
withShaderParameters(M value)
Copy the current immutable object by setting a value for the
shaderParameters attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitmatchTranslucentshaderParametersTypepublic R2InstanceBillboardedType instance()
instance in interface R2TranslucentBillboardedType<M>public R2ShaderTranslucentInstanceBillboardedType<M> shader()
shader in interface R2TranslucentBillboardedType<M>public M shaderParameters()
shaderParameters in interface R2TranslucentBillboardedType<M>shaderParameters in interface R2TranslucentType<M>shaderParameters attributepublic Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending()
blending in interface R2TranslucentBillboardedType<M>blending in interface R2TranslucentType<M>blending attributepublic com.io7m.jcanephora.renderstate.JCGLCullingState culling()
culling in interface R2TranslucentBillboardedType<M>culling in interface R2TranslucentType<M>culling attributepublic final R2TranslucentBillboarded<M> withInstance(R2InstanceBillboardedType value)
instance attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for instancethis objectpublic final R2TranslucentBillboarded<M> withShader(R2ShaderTranslucentInstanceBillboardedType<M> value)
shader attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for shaderthis objectpublic final R2TranslucentBillboarded<M> withShaderParameters(M value)
shaderParameters attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for shaderParametersthis objectpublic final R2TranslucentBillboarded<M> withBlending(com.io7m.jcanephora.renderstate.JCGLBlendState value)
blending attribute.value - The value for blendingthis objectpublic final R2TranslucentBillboarded<M> withBlending(Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> optional)
blending attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for blendingthis objectpublic final R2TranslucentBillboarded<M> withCulling(com.io7m.jcanephora.renderstate.JCGLCullingState value)
culling attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for cullingthis objectpublic boolean equals(Object another)
R2TranslucentBillboarded that have equal attribute values.public int hashCode()
instance, shader, shaderParameters, blending, culling.public String toString()
R2TranslucentBillboarded with attribute values.public static <M> R2TranslucentBillboarded<M> of(R2InstanceBillboardedType instance, R2ShaderTranslucentInstanceBillboardedType<M> shader, M shaderParameters, Optional<com.io7m.jcanephora.renderstate.JCGLBlendState> blending, com.io7m.jcanephora.renderstate.JCGLCullingState culling)
R2TranslucentBillboarded instance.instance - The value for the instance attributeshader - The value for the shader attributeshaderParameters - The value for the shaderParameters attributeblending - The value for the blending attributeculling - The value for the culling attributepublic static <M> R2TranslucentBillboarded<M> copyOf(R2TranslucentBillboardedType<M> instance)
R2TranslucentBillboardedType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.M - generic parameter Minstance - The instance to copypublic static <M> R2TranslucentBillboarded.Builder<M> builder()
R2TranslucentBillboarded.M - generic parameter MCopyright © 2017 <code@io7m.com> http://io7m.com