@Generated(value={"Immutables.generator","JCGLRenderStateType"}) public final class JCGLRenderState extends Object implements JCGLRenderStateType
| Modifier and Type | Class and Description |
|---|---|
static class |
JCGLRenderState.Builder
Builds instances of type
JCGLRenderState. |
| Modifier and Type | Method and Description |
|---|---|
Optional<JCGLBlendStateType> |
blendState() |
static JCGLRenderState.Builder |
builder()
Creates a builder for
JCGLRenderState. |
JCGLColorBufferMaskingStateType |
colorBufferMaskingState() |
Optional<JCGLCullingStateType> |
cullingState() |
JCGLDepthStateType |
depthState() |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLRenderState that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
blendState, cullingState, colorBufferMaskingState, polygonMode, scissor, depthState, stencilState. |
static JCGLRenderState |
of(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 new immutable
JCGLRenderState instance. |
JCGLPolygonMode |
polygonMode() |
Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> |
scissor() |
JCGLStencilStateType |
stencilState() |
String |
toString()
Prints the immutable value
JCGLRenderState with attribute values. |
public Optional<JCGLBlendStateType> blendState()
blendState in interface JCGLRenderStateTypepublic Optional<JCGLCullingStateType> cullingState()
cullingState in interface JCGLRenderStateTypepublic JCGLColorBufferMaskingStateType colorBufferMaskingState()
colorBufferMaskingState in interface JCGLRenderStateTypepublic JCGLPolygonMode polygonMode()
polygonMode in interface JCGLRenderStateTypepublic Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor()
scissor in interface JCGLRenderStateTypepublic JCGLDepthStateType depthState()
depthState in interface JCGLRenderStateTypepublic JCGLStencilStateType stencilState()
stencilState in interface JCGLRenderStateTypepublic boolean equals(Object another)
JCGLRenderState that have equal attribute values.public int hashCode()
blendState, cullingState, colorBufferMaskingState, polygonMode, scissor, depthState, stencilState.public String toString()
JCGLRenderState with attribute values.public static JCGLRenderState of(Optional<JCGLBlendStateType> blendState, Optional<JCGLCullingStateType> cullingState, JCGLColorBufferMaskingStateType colorBufferMaskingState, JCGLPolygonMode polygonMode, Optional<com.io7m.jregions.core.unparameterized.areas.AreaL> scissor, JCGLDepthStateType depthState, JCGLStencilStateType stencilState)
JCGLRenderState instance.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 JCGLRenderState.Builder builder()
JCGLRenderState.Copyright © 2017 <code@io7m.com> http://io7m.com