public class RenderState extends java.lang.Object implements java.io.Closeable, java.lang.Comparable<RenderState>
Constructor and Description |
---|
RenderState()
Constructor of
RenderState |
Modifier and Type | Method and Description |
---|---|
void |
close()
Dispose the
RenderState and release all internal resources. |
int |
compareTo(RenderState other)
Compare the render state with another instance
|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
boolean |
getBlend()
Enable or disable the fragment blending.
|
FVector4 |
getBlendColor()
Gets the blend color where used in
BlendFactor.CONSTANT_COLOR |
boolean |
getCullFace()
Enable or disable cull face
|
int |
getCullFaceMode()
Gets which face will be culled.
|
CompareFunction |
getDepthFunction()
Gets the compare function used in depth test
|
boolean |
getDepthMask()
Enable or disable the depth writing.
|
boolean |
getDepthTest()
Enable or disable the depth test.
|
BlendFactor |
getDestinationBlendFactor()
Gets how the color is blended.
|
FrontFace |
getFrontFace()
Gets which order is front face.
|
PolygonMode |
getPolygonMode()
Gets the polygon's render mode.
|
java.awt.Rectangle |
getScissorBox()
Gets the scissor box
|
boolean |
getScissorTest()
Enable or disable scissor test
|
BlendFactor |
getSourceBlendFactor()
Gets how the color is blended.
|
StencilState |
getStencilBackFace()
Gets the stencil state for back face.
|
StencilState |
getStencilFrontFace()
Gets the stencil state for front face.
|
int |
getStencilMask()
Gets the mask that is ANDed with the both reference and stored stencil value when test is done.
|
int |
getStencilReference()
Gets the reference value for the stencil test.
|
boolean |
getStencilTest()
Enable or disable the stencil test.
|
int |
hashCode()
Returns the hash code for this instance.
|
void |
setBlend(boolean value)
Enable or disable the fragment blending.
|
void |
setBlendColor(FVector4 value)
Sets the blend color where used in
BlendFactor.CONSTANT_COLOR |
void |
setCullFace(boolean value)
Enable or disable cull face
|
void |
setCullFaceMode(int value)
Sets which face will be culled.
|
void |
setDepthFunction(CompareFunction value)
Sets the compare function used in depth test
|
void |
setDepthMask(boolean value)
Enable or disable the depth writing.
|
void |
setDepthTest(boolean value)
Enable or disable the depth test.
|
void |
setDestinationBlendFactor(BlendFactor value)
Sets how the color is blended.
|
void |
setFrontFace(FrontFace value)
Sets which order is front face.
|
void |
setPolygonMode(PolygonMode value)
Sets the polygon's render mode.
|
void |
setScissorBox(java.awt.Rectangle value)
Sets the scissor box
|
void |
setScissorTest(boolean value)
Enable or disable scissor test
|
void |
setSourceBlendFactor(BlendFactor value)
Sets how the color is blended.
|
void |
setStencilMask(int value)
Sets the mask that is ANDed with the both reference and stored stencil value when test is done.
|
void |
setStencilReference(int value)
Sets the reference value for the stencil test.
|
void |
setStencilTest(boolean value)
Enable or disable the stencil test.
|
public RenderState()
RenderState
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean getBlend()
public void setBlend(boolean value)
value
- New valuepublic FVector4 getBlendColor()
BlendFactor.CONSTANT_COLOR
public void setBlendColor(FVector4 value)
BlendFactor.CONSTANT_COLOR
value
- New valuepublic BlendFactor getSourceBlendFactor()
public void setSourceBlendFactor(BlendFactor value)
value
- New valuepublic BlendFactor getDestinationBlendFactor()
public void setDestinationBlendFactor(BlendFactor value)
value
- New valuepublic boolean getCullFace()
public void setCullFace(boolean value)
value
- New valuepublic int getCullFaceMode()
public void setCullFaceMode(int value)
value
- New valuepublic FrontFace getFrontFace()
public void setFrontFace(FrontFace value)
value
- New valuepublic boolean getDepthTest()
public void setDepthTest(boolean value)
value
- New valuepublic boolean getDepthMask()
public void setDepthMask(boolean value)
value
- New valuepublic CompareFunction getDepthFunction()
public void setDepthFunction(CompareFunction value)
value
- New valuepublic boolean getStencilTest()
public void setStencilTest(boolean value)
value
- New valuepublic int getStencilReference()
public void setStencilReference(int value)
value
- New valuepublic int getStencilMask()
public void setStencilMask(int value)
value
- New valuepublic StencilState getStencilFrontFace()
public StencilState getStencilBackFace()
public boolean getScissorTest()
public void setScissorTest(boolean value)
value
- New valuepublic java.awt.Rectangle getScissorBox()
public void setScissorBox(java.awt.Rectangle value)
value
- New valuepublic PolygonMode getPolygonMode()
public void setPolygonMode(PolygonMode value)
value
- New valuepublic int compareTo(RenderState other)
compareTo
in interface java.lang.Comparable<RenderState>
other
- public int hashCode()
hashCode
in class java.lang.Object
public void close()
RenderState
and release all internal resources.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable