@Generated(value={"Modifiables.generator","JCGLRenderStateType"}) public final class JCGLRenderStateMutable extends Object implements JCGLRenderStateType
JCGLRenderStateType type.
Use the create() static factory methods to create new instances.
JCGLRenderStateMutable is not thread-safe
JCGLRenderState| Modifier and Type | Method and Description |
|---|---|
Optional<JCGLBlendStateType> |
blendState() |
JCGLRenderStateMutable |
clear()
Clears the object by setting all attributes to their initial values.
|
JCGLColorBufferMaskingStateType |
colorBufferMaskingState() |
boolean |
colorBufferMaskingStateIsSet()
Returns
true if the default attribute colorBufferMaskingState is set. |
static JCGLRenderStateMutable |
create()
Construct a modifiable instance of
JCGLRenderStateType. |
static JCGLRenderStateMutable |
create(Optional<JCGLBlendStateType> blendState,
Optional<JCGLCullingStateType> cullingState,
JCGLColorBufferMaskingStateType colorBufferMaskingState,
JCGLPolygonMode polygonMode,
Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor,
JCGLDepthStateType depthState,
JCGLStencilStateType stencilState)
Construct a modifiable instance of
JCGLRenderStateType. |
Optional<JCGLCullingStateType> |
cullingState() |
JCGLDepthStateType |
depthState() |
boolean |
depthStateIsSet()
Returns
true if the default attribute depthState is set. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLRenderStateMutable that have equal attribute values. |
JCGLRenderStateMutable |
from(JCGLRenderStateType instance)
Fill this modifiable instance with attribute values from the provided
JCGLRenderStateType instance. |
int |
hashCode()
Computes a hash code from attributes:
blendState, cullingState, colorBufferMaskingState, polygonMode, scissor, depthState, stencilState. |
boolean |
isInitialized()
Returns
true if all required attributes are set, indicating that the object is initialized. |
JCGLPolygonMode |
polygonMode() |
boolean |
polygonModeIsSet()
Returns
true if the default attribute polygonMode is set. |
Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> |
scissor() |
JCGLRenderStateMutable |
setBlendState(JCGLBlendStateType blendState)
Assigns a present value for the optional
blendState attribute. |
JCGLRenderStateMutable |
setBlendState(Optional<JCGLBlendStateType> blendState)
Assigns an optional value for
blendState. |
JCGLRenderStateMutable |
setColorBufferMaskingState(JCGLColorBufferMaskingStateType colorBufferMaskingState)
Assigns a value to the
colorBufferMaskingState attribute. |
JCGLRenderStateMutable |
setCullingState(JCGLCullingStateType cullingState)
Assigns a present value for the optional
cullingState attribute. |
JCGLRenderStateMutable |
setCullingState(Optional<JCGLCullingStateType> cullingState)
Assigns an optional value for
cullingState. |
JCGLRenderStateMutable |
setDepthState(JCGLDepthStateType depthState)
Assigns a value to the
depthState attribute. |
JCGLRenderStateMutable |
setPolygonMode(JCGLPolygonMode polygonMode)
Assigns a value to the
polygonMode attribute. |
JCGLRenderStateMutable |
setScissor(com.io7m.jregions.core.unparameterized.areas.AreaL scissor)
Assigns a present value for the optional
scissor attribute. |
JCGLRenderStateMutable |
setScissor(Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor)
Assigns an optional value for
scissor. |
JCGLRenderStateMutable |
setStencilState(JCGLStencilStateType stencilState)
Assigns a value to the
stencilState attribute. |
JCGLStencilStateType |
stencilState() |
boolean |
stencilStateIsSet()
Returns
true if the default attribute stencilState is set. |
JCGLRenderState |
toImmutable()
Converts to
JCGLRenderState. |
String |
toString()
Generates a string representation of this
JCGLRenderStateType. |
public static JCGLRenderStateMutable create(Optional<JCGLBlendStateType> blendState, Optional<JCGLCullingStateType> cullingState, JCGLColorBufferMaskingStateType colorBufferMaskingState, JCGLPolygonMode polygonMode, Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor, JCGLDepthStateType depthState, JCGLStencilStateType stencilState)
JCGLRenderStateType.blendState - The value for the blendState attributecullingState - The value for the cullingState attributecolorBufferMaskingState - The value for the colorBufferMaskingState attributepolygonMode - The value for the polygonMode attributescissor - The value for the scissor attributedepthState - The value for the depthState attributestencilState - The value for the stencilState attributepublic static JCGLRenderStateMutable create()
JCGLRenderStateType.public final Optional<JCGLBlendStateType> blendState()
blendState in interface JCGLRenderStateTypepublic final Optional<JCGLCullingStateType> cullingState()
cullingState in interface JCGLRenderStateTypepublic final JCGLColorBufferMaskingStateType colorBufferMaskingState()
colorBufferMaskingState in interface JCGLRenderStateTypepublic final JCGLPolygonMode polygonMode()
polygonMode in interface JCGLRenderStateTypepublic final Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor()
scissor in interface JCGLRenderStateTypepublic final JCGLDepthStateType depthState()
depthState in interface JCGLRenderStateTypepublic final JCGLStencilStateType stencilState()
stencilState in interface JCGLRenderStateTypepublic JCGLRenderStateMutable clear()
this for use in a chained invocationpublic JCGLRenderStateMutable from(JCGLRenderStateType instance)
JCGLRenderStateType 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 JCGLRenderStateMutable setBlendState(JCGLBlendStateType blendState)
blendState attribute.blendState - A value for blendStatethis for use in a chained invocationpublic JCGLRenderStateMutable setBlendState(Optional<JCGLBlendStateType> blendState)
blendState.blendState - A value for blendStatethis for use in a chained invocationpublic JCGLRenderStateMutable setCullingState(JCGLCullingStateType cullingState)
cullingState attribute.cullingState - A value for cullingStatethis for use in a chained invocationpublic JCGLRenderStateMutable setCullingState(Optional<JCGLCullingStateType> cullingState)
cullingState.cullingState - A value for cullingStatethis for use in a chained invocationpublic JCGLRenderStateMutable setColorBufferMaskingState(JCGLColorBufferMaskingStateType colorBufferMaskingState)
colorBufferMaskingState attribute.
If not set, this attribute will have a default value returned by the initializer of colorBufferMaskingState.
colorBufferMaskingState - The value for colorBufferMaskingStatethis for use in a chained invocationpublic JCGLRenderStateMutable setPolygonMode(JCGLPolygonMode polygonMode)
polygonMode attribute.
If not set, this attribute will have a default value returned by the initializer of polygonMode.
polygonMode - The value for polygonModethis for use in a chained invocationpublic JCGLRenderStateMutable setScissor(com.io7m.jregions.core.unparameterized.areas.AreaL scissor)
scissor attribute.scissor - A value for scissorthis for use in a chained invocationpublic JCGLRenderStateMutable setScissor(Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor)
scissor.scissor - A value for scissorthis for use in a chained invocationpublic JCGLRenderStateMutable setDepthState(JCGLDepthStateType depthState)
depthState attribute.
If not set, this attribute will have a default value returned by the initializer of depthState.
depthState - The value for depthStatethis for use in a chained invocationpublic JCGLRenderStateMutable setStencilState(JCGLStencilStateType stencilState)
stencilState attribute.
If not set, this attribute will have a default value returned by the initializer of stencilState.
stencilState - The value for stencilStatethis for use in a chained invocationpublic final boolean colorBufferMaskingStateIsSet()
true if the default attribute colorBufferMaskingState is set.true if setpublic final boolean polygonModeIsSet()
true if the default attribute polygonMode is set.true if setpublic final boolean depthStateIsSet()
true if the default attribute depthState is set.true if setpublic final boolean stencilStateIsSet()
true if the default attribute stencilState 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 JCGLRenderState toImmutable()
JCGLRenderState.public boolean equals(Object another)
JCGLRenderStateMutable that have equal attribute values.public int hashCode()
blendState, cullingState, colorBufferMaskingState, polygonMode, scissor, depthState, stencilState.Copyright © 2017 <code@io7m.com> http://io7m.com