M - generic parameter M@Generated(value={"Modifiables.generator","R2ShaderParametersLightType<M>"}) public final class R2ShaderParametersLightMutable<M> extends Object implements R2ShaderParametersLightType<M>
R2ShaderParametersLightType type.
Use the create() static factory methods to create new instances.
Use the toImmutable() method to convert to canonical immutable instances.
R2ShaderParametersLightMutable is not thread-safe
R2ShaderParametersLight| Modifier and Type | Method and Description |
|---|---|
R2ShaderParametersLightMutable<M> |
clear()
Clears the object by setting all attributes to their initial values.
|
static <M> R2ShaderParametersLightMutable<M> |
create()
Construct a modifiable instance of
R2ShaderParametersLightType. |
static <M> R2ShaderParametersLightMutable<M> |
create(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext,
M values,
R2MatricesObserverValuesType observerMatrices,
com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
Construct a modifiable instance of
R2ShaderParametersLightType. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderParametersLightMutable that have equal attribute values. |
R2ShaderParametersLightMutable<M> |
from(R2ShaderParametersLightType<M> instance)
Fill this modifiable instance with attribute values from the provided
R2ShaderParametersLightType instance. |
int |
hashCode()
Computes a hash code from attributes:
textureUnitContext, values, observerMatrices, viewport. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
R2MatricesObserverValuesType |
observerMatrices() |
boolean |
observerMatricesIsSet()
Returns
true if the required attribute observerMatrices is set. |
R2ShaderParametersLightMutable<M> |
setObserverMatrices(R2MatricesObserverValuesType observerMatrices)
Assigns a value to the
observerMatrices attribute. |
R2ShaderParametersLightMutable<M> |
setTextureUnitContext(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext)
Assigns a value to the
textureUnitContext attribute. |
R2ShaderParametersLightMutable<M> |
setValues(M values)
Assigns a value to the
values attribute. |
R2ShaderParametersLightMutable<M> |
setViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
Assigns a value to the
viewport attribute. |
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType |
textureUnitContext() |
boolean |
textureUnitContextIsSet()
Returns
true if the required attribute textureUnitContext is set. |
R2ShaderParametersLight<M> |
toImmutable()
Converts to
R2ShaderParametersLight. |
String |
toString()
Generates a string representation of this
R2ShaderParametersLightType. |
R2ShaderParametersLightMutable<M> |
unsetObserverMatrices()
Reset an attribute to its initial value.
|
R2ShaderParametersLightMutable<M> |
unsetTextureUnitContext()
Reset an attribute to its initial value.
|
R2ShaderParametersLightMutable<M> |
unsetValues()
Reset an attribute to its initial value.
|
R2ShaderParametersLightMutable<M> |
unsetViewport()
Reset an attribute to its initial value.
|
M |
values() |
boolean |
valuesIsSet()
Returns
true if the required attribute values is set. |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
viewport()
A specification of the viewport to which rendering is occurring.
|
boolean |
viewportIsSet()
Returns
true if the required attribute viewport is set. |
public static <M> R2ShaderParametersLightMutable<M> create(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext, M values, R2MatricesObserverValuesType observerMatrices, com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
R2ShaderParametersLightType.M - generic parameter MtextureUnitContext - 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> R2ShaderParametersLightMutable<M> create()
R2ShaderParametersLightType.M - generic parameter Mpublic final com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext()
textureUnitContext in interface R2ShaderParametersLightType<M>public final M values()
values in interface R2ShaderParametersLightType<M>public final R2MatricesObserverValuesType observerMatrices()
observerMatrices in interface R2ShaderParametersLightType<M>public final com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport()
viewport in interface R2ShaderParametersLightType<M>public R2ShaderParametersLightMutable<M> clear()
this for use in a chained invocationpublic R2ShaderParametersLightMutable<M> from(R2ShaderParametersLightType<M> instance)
R2ShaderParametersLightType 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 R2ShaderParametersLightMutable<M> setTextureUnitContext(com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextMutableType textureUnitContext)
textureUnitContext attribute.textureUnitContext - The value for textureUnitContextthis for use in a chained invocationpublic R2ShaderParametersLightMutable<M> setValues(M values)
values attribute.values - The value for valuesthis for use in a chained invocationpublic R2ShaderParametersLightMutable<M> setObserverMatrices(R2MatricesObserverValuesType observerMatrices)
observerMatrices attribute.observerMatrices - The value for observerMatricesthis for use in a chained invocationpublic R2ShaderParametersLightMutable<M> setViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport)
viewport attribute.viewport - The value for viewportthis for use in a chained invocationpublic final boolean textureUnitContextIsSet()
true if the required attribute textureUnitContext is set.true if setpublic final boolean valuesIsSet()
true if the required attribute values is set.true if setpublic final boolean observerMatricesIsSet()
true if the required attribute observerMatrices is set.true if setpublic final boolean viewportIsSet()
true if the required attribute viewport is set.true if setpublic final R2ShaderParametersLightMutable<M> unsetTextureUnitContext()
this for use in a chained invocationpublic final R2ShaderParametersLightMutable<M> unsetValues()
this for use in a chained invocationpublic final R2ShaderParametersLightMutable<M> unsetObserverMatrices()
this for use in a chained invocationpublic final R2ShaderParametersLightMutable<M> unsetViewport()
this for use in a chained invocationpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final R2ShaderParametersLight<M> toImmutable()
R2ShaderParametersLight.public boolean equals(Object another)
R2ShaderParametersLightMutable that have equal attribute values.
An uninitialized instance is equal only to itself.public int hashCode()
textureUnitContext, values, observerMatrices, viewport.Copyright © 2017 <code@io7m.com> http://io7m.com