@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 |
|---|---|
static JCGLRenderState.Builder |
builder()
Creates a builder for
JCGLRenderState. |
boolean |
equals(Object another)
This instance is equal to all instances of
JCGLRenderState that have equal attribute values. |
Optional<JCGLBlendStateType> |
getBlendState() |
JCGLColorBufferMaskingStateType |
getColorBufferMaskingState() |
Optional<JCGLCullingStateType> |
getCullingState() |
JCGLDepthStateType |
getDepthState() |
JCGLPolygonMode |
getPolygonMode() |
Optional<com.io7m.jareas.core.AreaInclusiveUnsignedLType> |
getScissor() |
JCGLStencilStateType |
getStencilState() |
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.jareas.core.AreaInclusiveUnsignedLType> scissor,
JCGLDepthStateType depthState,
JCGLStencilStateType stencilState)
Construct a new immutable
JCGLRenderState instance. |
String |
toString()
Prints the immutable value
JCGLRenderState with attribute values. |
public Optional<JCGLBlendStateType> getBlendState()
getBlendState in interface JCGLRenderStateTypepublic Optional<JCGLCullingStateType> getCullingState()
getCullingState in interface JCGLRenderStateTypepublic JCGLColorBufferMaskingStateType getColorBufferMaskingState()
getColorBufferMaskingState in interface JCGLRenderStateTypepublic JCGLPolygonMode getPolygonMode()
getPolygonMode in interface JCGLRenderStateTypepublic Optional<com.io7m.jareas.core.AreaInclusiveUnsignedLType> getScissor()
getScissor in interface JCGLRenderStateTypepublic JCGLDepthStateType getDepthState()
getDepthState in interface JCGLRenderStateTypepublic JCGLStencilStateType getStencilState()
getStencilState 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.jareas.core.AreaInclusiveUnsignedLType> 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 © 2016 <code@io7m.com> http://io7m.com