public static final class JCGLBlendState.Builder extends Object
JCGLBlendState.
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.
public final JCGLBlendState.Builder from(JCGLBlendStateType instance)
JCGLBlendStateType 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 JCGLBlendState.Builder setBlendFunctionSourceRGB(JCGLBlendFunction blendFunctionSourceRGB)
blendFunctionSourceRGB attribute.
If not set, this attribute will have a default value as returned by the initializer of blendFunctionSourceRGB.
blendFunctionSourceRGB - The value for blendFunctionSourceRGBthis builder for use in a chained invocationpublic final JCGLBlendState.Builder setBlendFunctionSourceAlpha(JCGLBlendFunction blendFunctionSourceAlpha)
blendFunctionSourceAlpha attribute.
If not set, this attribute will have a default value as returned by the initializer of blendFunctionSourceAlpha.
blendFunctionSourceAlpha - The value for blendFunctionSourceAlphathis builder for use in a chained invocationpublic final JCGLBlendState.Builder setBlendFunctionTargetRGB(JCGLBlendFunction blendFunctionTargetRGB)
blendFunctionTargetRGB attribute.
If not set, this attribute will have a default value as returned by the initializer of blendFunctionTargetRGB.
blendFunctionTargetRGB - The value for blendFunctionTargetRGBthis builder for use in a chained invocationpublic final JCGLBlendState.Builder setBlendFunctionTargetAlpha(JCGLBlendFunction blendFunctionTargetAlpha)
blendFunctionTargetAlpha attribute.
If not set, this attribute will have a default value as returned by the initializer of blendFunctionTargetAlpha.
blendFunctionTargetAlpha - The value for blendFunctionTargetAlphathis builder for use in a chained invocationpublic final JCGLBlendState.Builder setBlendEquationRGB(JCGLBlendEquation blendEquationRGB)
blendEquationRGB attribute.
If not set, this attribute will have a default value as returned by the initializer of blendEquationRGB.
blendEquationRGB - The value for blendEquationRGBthis builder for use in a chained invocationpublic final JCGLBlendState.Builder setBlendEquationAlpha(JCGLBlendEquation blendEquationAlpha)
blendEquationAlpha attribute.
If not set, this attribute will have a default value as returned by the initializer of blendEquationAlpha.
blendEquationAlpha - The value for blendEquationAlphathis builder for use in a chained invocationpublic JCGLBlendState build()
JCGLBlendState.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com