@Generated(value={"Modifiables.generator","JCGLBlendStateType"}) public final class JCGLBlendStateMutable extends Object implements JCGLBlendStateType
JCGLBlendStateType type.
Use the create() static factory methods to create new instances.
JCGLBlendStateMutable is not thread-safe
JCGLBlendState| Modifier and Type | Method and Description |
|---|---|
JCGLBlendEquation |
blendEquationAlpha() |
boolean |
blendEquationAlphaIsSet()
Returns
true if the default attribute blendEquationAlpha is set. |
JCGLBlendEquation |
blendEquationRGB() |
boolean |
blendEquationRGBIsSet()
Returns
true if the default attribute blendEquationRGB is set. |
JCGLBlendFunction |
blendFunctionSourceAlpha() |
boolean |
blendFunctionSourceAlphaIsSet()
Returns
true if the default attribute blendFunctionSourceAlpha is set. |
JCGLBlendFunction |
blendFunctionSourceRGB() |
boolean |
blendFunctionSourceRGBIsSet()
Returns
true if the default attribute blendFunctionSourceRGB is set. |
JCGLBlendFunction |
blendFunctionTargetAlpha() |
boolean |
blendFunctionTargetAlphaIsSet()
Returns
true if the default attribute blendFunctionTargetAlpha is set. |
JCGLBlendFunction |
blendFunctionTargetRGB() |
boolean |
blendFunctionTargetRGBIsSet()
Returns
true if the default attribute blendFunctionTargetRGB is set. |
JCGLBlendStateMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
static JCGLBlendStateMutable |
create()
Construct a modifiable instance of
JCGLBlendStateType. |
static JCGLBlendStateMutable |
create(JCGLBlendFunction blendFunctionSourceRGB,
JCGLBlendFunction blendFunctionSourceAlpha,
JCGLBlendFunction blendFunctionTargetRGB,
JCGLBlendFunction blendFunctionTargetAlpha,
JCGLBlendEquation blendEquationRGB,
JCGLBlendEquation blendEquationAlpha)
Construct a modifiable instance of
JCGLBlendStateType. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLBlendStateMutable that have equal attribute values. |
JCGLBlendStateMutable |
from(JCGLBlendStateType instance)
Fill this modifiable instance with attribute values from the provided
JCGLBlendStateType instance. |
int |
hashCode()
Computes a hash code from attributes:
blendFunctionSourceRGB, blendFunctionSourceAlpha, blendFunctionTargetRGB, blendFunctionTargetAlpha, blendEquationRGB, blendEquationAlpha. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
JCGLBlendStateMutable |
setBlendEquationAlpha(JCGLBlendEquation blendEquationAlpha)
Assigns a value to the
blendEquationAlpha attribute. |
JCGLBlendStateMutable |
setBlendEquationRGB(JCGLBlendEquation blendEquationRGB)
Assigns a value to the
blendEquationRGB attribute. |
JCGLBlendStateMutable |
setBlendFunctionSourceAlpha(JCGLBlendFunction blendFunctionSourceAlpha)
Assigns a value to the
blendFunctionSourceAlpha attribute. |
JCGLBlendStateMutable |
setBlendFunctionSourceRGB(JCGLBlendFunction blendFunctionSourceRGB)
Assigns a value to the
blendFunctionSourceRGB attribute. |
JCGLBlendStateMutable |
setBlendFunctionTargetAlpha(JCGLBlendFunction blendFunctionTargetAlpha)
Assigns a value to the
blendFunctionTargetAlpha attribute. |
JCGLBlendStateMutable |
setBlendFunctionTargetRGB(JCGLBlendFunction blendFunctionTargetRGB)
Assigns a value to the
blendFunctionTargetRGB attribute. |
JCGLBlendState |
toImmutable()
Converts to
JCGLBlendState. |
String |
toString()
Generates a string representation of this
JCGLBlendStateType. |
public static JCGLBlendStateMutable create(JCGLBlendFunction blendFunctionSourceRGB, JCGLBlendFunction blendFunctionSourceAlpha, JCGLBlendFunction blendFunctionTargetRGB, JCGLBlendFunction blendFunctionTargetAlpha, JCGLBlendEquation blendEquationRGB, JCGLBlendEquation blendEquationAlpha)
JCGLBlendStateType.blendFunctionSourceRGB - The value for the blendFunctionSourceRGB attributeblendFunctionSourceAlpha - The value for the blendFunctionSourceAlpha attributeblendFunctionTargetRGB - The value for the blendFunctionTargetRGB attributeblendFunctionTargetAlpha - The value for the blendFunctionTargetAlpha attributeblendEquationRGB - The value for the blendEquationRGB attributeblendEquationAlpha - The value for the blendEquationAlpha attributepublic static JCGLBlendStateMutable create()
JCGLBlendStateType.public final JCGLBlendFunction blendFunctionSourceRGB()
blendFunctionSourceRGB in interface JCGLBlendStateTypeJCGLBlendFunctionpublic final JCGLBlendFunction blendFunctionSourceAlpha()
blendFunctionSourceAlpha in interface JCGLBlendStateTypeJCGLBlendFunctionpublic final JCGLBlendFunction blendFunctionTargetRGB()
blendFunctionTargetRGB in interface JCGLBlendStateTypeJCGLBlendFunctionpublic final JCGLBlendFunction blendFunctionTargetAlpha()
blendFunctionTargetAlpha in interface JCGLBlendStateTypeJCGLBlendFunctionpublic final JCGLBlendEquation blendEquationRGB()
blendEquationRGB in interface JCGLBlendStateTypeJCGLBlendEquationpublic final JCGLBlendEquation blendEquationAlpha()
blendEquationAlpha in interface JCGLBlendStateTypeJCGLBlendEquationpublic JCGLBlendStateMutable clear()
this for use in a chained invocationpublic JCGLBlendStateMutable from(JCGLBlendStateType instance)
JCGLBlendStateType 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 JCGLBlendStateMutable setBlendFunctionSourceRGB(JCGLBlendFunction blendFunctionSourceRGB)
blendFunctionSourceRGB attribute.
If not set, this attribute will have a default value returned by the initializer of blendFunctionSourceRGB.
blendFunctionSourceRGB - The value for blendFunctionSourceRGBthis for use in a chained invocationpublic JCGLBlendStateMutable setBlendFunctionSourceAlpha(JCGLBlendFunction blendFunctionSourceAlpha)
blendFunctionSourceAlpha attribute.
If not set, this attribute will have a default value returned by the initializer of blendFunctionSourceAlpha.
blendFunctionSourceAlpha - The value for blendFunctionSourceAlphathis for use in a chained invocationpublic JCGLBlendStateMutable setBlendFunctionTargetRGB(JCGLBlendFunction blendFunctionTargetRGB)
blendFunctionTargetRGB attribute.
If not set, this attribute will have a default value returned by the initializer of blendFunctionTargetRGB.
blendFunctionTargetRGB - The value for blendFunctionTargetRGBthis for use in a chained invocationpublic JCGLBlendStateMutable setBlendFunctionTargetAlpha(JCGLBlendFunction blendFunctionTargetAlpha)
blendFunctionTargetAlpha attribute.
If not set, this attribute will have a default value returned by the initializer of blendFunctionTargetAlpha.
blendFunctionTargetAlpha - The value for blendFunctionTargetAlphathis for use in a chained invocationpublic JCGLBlendStateMutable setBlendEquationRGB(JCGLBlendEquation blendEquationRGB)
blendEquationRGB attribute.
If not set, this attribute will have a default value returned by the initializer of blendEquationRGB.
blendEquationRGB - The value for blendEquationRGBthis for use in a chained invocationpublic JCGLBlendStateMutable setBlendEquationAlpha(JCGLBlendEquation blendEquationAlpha)
blendEquationAlpha attribute.
If not set, this attribute will have a default value returned by the initializer of blendEquationAlpha.
blendEquationAlpha - The value for blendEquationAlphathis for use in a chained invocationpublic final boolean blendFunctionSourceRGBIsSet()
true if the default attribute blendFunctionSourceRGB is set.true if setpublic final boolean blendFunctionSourceAlphaIsSet()
true if the default attribute blendFunctionSourceAlpha is set.true if setpublic final boolean blendFunctionTargetRGBIsSet()
true if the default attribute blendFunctionTargetRGB is set.true if setpublic final boolean blendFunctionTargetAlphaIsSet()
true if the default attribute blendFunctionTargetAlpha is set.true if setpublic final boolean blendEquationRGBIsSet()
true if the default attribute blendEquationRGB is set.true if setpublic final boolean blendEquationAlphaIsSet()
true if the default attribute blendEquationAlpha is set.true if setpublic final boolean isInitialized()
true if all required attributes are set, indicating that the object is initialized.true if setpublic final JCGLBlendState toImmutable()
JCGLBlendState.public boolean equals(Object another)
JCGLBlendStateMutable that have equal attribute values.public int hashCode()
blendFunctionSourceRGB, blendFunctionSourceAlpha, blendFunctionTargetRGB, blendFunctionTargetAlpha, blendEquationRGB, blendEquationAlpha.Copyright © 2017 <code@io7m.com> http://io7m.com