M - The precise type of shader parameters@Generated(value={"Immutables.generator","R2ShaderParametersLightType<M>"}) public final class R2ShaderParametersLight<M> extends Object implements R2ShaderParametersLightType<M>
| Modifier and Type | Class and Description |
|---|---|
static class |
R2ShaderParametersLight.Builder<M>
Builds instances of type
R2ShaderParametersLight. |
| Modifier and Type | Method and Description |
|---|---|
static <M> R2ShaderParametersLight.Builder<M> |
builder()
Creates a builder for
R2ShaderParametersLight. |
static <M> R2ShaderParametersLight<M> |
copyOf(R2ShaderParametersLightType<M> instance)
Creates an immutable copy of a
R2ShaderParametersLightType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderParametersLight that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
textureUnitContext, values, observerMatrices, viewport. |
R2MatricesObserverValuesType |
observerMatrices() |
static <M> R2ShaderParametersLight<M> |
of(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext,
M values,
R2MatricesObserverValuesType observerMatrices,
com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
Construct a new immutable
R2ShaderParametersLight instance. |
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType |
textureUnitContext() |
String |
toString()
Prints the immutable value
R2ShaderParametersLight with attribute values. |
M |
values() |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
viewport()
A specification of the viewport to which rendering is occurring.
|
R2ShaderParametersLight<M> |
withObserverMatrices(R2MatricesObserverValuesType value)
Copy the current immutable object by setting a value for the
observerMatrices attribute. |
R2ShaderParametersLight<M> |
withTextureUnitContext(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType value)
Copy the current immutable object by setting a value for the
textureUnitContext attribute. |
R2ShaderParametersLight<M> |
withValues(M value)
Copy the current immutable object by setting a value for the
values attribute. |
R2ShaderParametersLight<M> |
withViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
Copy the current immutable object by setting a value for the
viewport attribute. |
public com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext()
textureUnitContext in interface R2ShaderParametersLightType<M>public M values()
values in interface R2ShaderParametersLightType<M>public R2MatricesObserverValuesType observerMatrices()
observerMatrices in interface R2ShaderParametersLightType<M>public com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport()
viewport in interface R2ShaderParametersLightType<M>public final R2ShaderParametersLight<M> withTextureUnitContext(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType value)
textureUnitContext attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for textureUnitContextthis objectpublic final R2ShaderParametersLight<M> withValues(M value)
values attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for valuesthis objectpublic final R2ShaderParametersLight<M> withObserverMatrices(R2MatricesObserverValuesType value)
observerMatrices attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for observerMatricesthis objectpublic final R2ShaderParametersLight<M> withViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
viewport attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for viewportthis objectpublic boolean equals(Object another)
R2ShaderParametersLight that have equal attribute values.public int hashCode()
textureUnitContext, values, observerMatrices, viewport.public String toString()
R2ShaderParametersLight with attribute values.public static <M> R2ShaderParametersLight<M> of(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext, M values, R2MatricesObserverValuesType observerMatrices, com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
R2ShaderParametersLight instance.textureUnitContext - The value for the textureUnitContext attributevalues - The value for the values attributeobserverMatrices - The value for the observerMatrices attributeviewport - The value for the viewport attributepublic static <M> R2ShaderParametersLight<M> copyOf(R2ShaderParametersLightType<M> instance)
R2ShaderParametersLightType 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> R2ShaderParametersLight.Builder<M> builder()
R2ShaderParametersLight.M - generic parameter MCopyright © 2016 <code@io7m.com> http://io7m.com