Package com.aspose.threed
Class RenderState
- java.lang.Object
-
- com.aspose.threed.RenderState
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Comparable<RenderState>
public class RenderState extends java.lang.Object implements java.io.Closeable, java.lang.Comparable<RenderState>
Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.
-
-
Constructor Summary
Constructors Constructor Description RenderState()
Constructor ofRenderState
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Dispose theRenderState
and release all internal resources.int
compareTo(RenderState other)
Compare the render state with another instanceboolean
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 inBlendFactor.CONSTANT_COLOR
boolean
getCullFace()
Enable or disable cull faceint
getCullFaceMode()
Gets which face will be culled.CompareFunction
getDepthFunction()
Gets the compare function used in depth testboolean
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 boxboolean
getScissorTest()
Enable or disable scissor testBlendFactor
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 inBlendFactor.CONSTANT_COLOR
void
setCullFace(boolean value)
Enable or disable cull facevoid
setCullFaceMode(int value)
Sets which face will be culled.void
setDepthFunction(CompareFunction value)
Sets the compare function used in depth testvoid
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 boxvoid
setScissorTest(boolean value)
Enable or disable scissor testvoid
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.
-
-
-
Constructor Detail
-
RenderState
public RenderState()
Constructor ofRenderState
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified object.- Overrides:
equals
in classjava.lang.Object
-
getBlend
public boolean getBlend()
Enable or disable the fragment blending.
-
setBlend
public void setBlend(boolean value)
Enable or disable the fragment blending.- Parameters:
value
- New value
-
getBlendColor
public FVector4 getBlendColor()
Gets the blend color where used inBlendFactor.CONSTANT_COLOR
-
setBlendColor
public void setBlendColor(FVector4 value)
Sets the blend color where used inBlendFactor.CONSTANT_COLOR
- Parameters:
value
- New value
-
getSourceBlendFactor
public BlendFactor getSourceBlendFactor()
Gets how the color is blended.
-
setSourceBlendFactor
public void setSourceBlendFactor(BlendFactor value)
Sets how the color is blended.- Parameters:
value
- New value
-
getDestinationBlendFactor
public BlendFactor getDestinationBlendFactor()
Gets how the color is blended.
-
setDestinationBlendFactor
public void setDestinationBlendFactor(BlendFactor value)
Sets how the color is blended.- Parameters:
value
- New value
-
getCullFace
public boolean getCullFace()
Enable or disable cull face
-
setCullFace
public void setCullFace(boolean value)
Enable or disable cull face- Parameters:
value
- New value
-
getCullFaceMode
public int getCullFaceMode()
Gets which face will be culled.
-
setCullFaceMode
public void setCullFaceMode(int value)
Sets which face will be culled.- Parameters:
value
- New value
-
getFrontFace
public FrontFace getFrontFace()
Gets which order is front face.
-
setFrontFace
public void setFrontFace(FrontFace value)
Sets which order is front face.- Parameters:
value
- New value
-
getDepthTest
public boolean getDepthTest()
Enable or disable the depth test.
-
setDepthTest
public void setDepthTest(boolean value)
Enable or disable the depth test.- Parameters:
value
- New value
-
getDepthMask
public boolean getDepthMask()
Enable or disable the depth writing.
-
setDepthMask
public void setDepthMask(boolean value)
Enable or disable the depth writing.- Parameters:
value
- New value
-
getDepthFunction
public CompareFunction getDepthFunction()
Gets the compare function used in depth test
-
setDepthFunction
public void setDepthFunction(CompareFunction value)
Sets the compare function used in depth test- Parameters:
value
- New value
-
getStencilTest
public boolean getStencilTest()
Enable or disable the stencil test.
-
setStencilTest
public void setStencilTest(boolean value)
Enable or disable the stencil test.- Parameters:
value
- New value
-
getStencilReference
public int getStencilReference()
Gets the reference value for the stencil test.
-
setStencilReference
public void setStencilReference(int value)
Sets the reference value for the stencil test.- Parameters:
value
- New value
-
getStencilMask
public int getStencilMask()
Gets the mask that is ANDed with the both reference and stored stencil value when test is done.
-
setStencilMask
public void setStencilMask(int value)
Sets the mask that is ANDed with the both reference and stored stencil value when test is done.- Parameters:
value
- New value
-
getStencilFrontFace
public StencilState getStencilFrontFace()
Gets the stencil state for front face.
-
getStencilBackFace
public StencilState getStencilBackFace()
Gets the stencil state for back face.
-
getScissorTest
public boolean getScissorTest()
Enable or disable scissor test
-
setScissorTest
public void setScissorTest(boolean value)
Enable or disable scissor test- Parameters:
value
- New value
-
getScissorBox
public java.awt.Rectangle getScissorBox()
Gets the scissor box
-
setScissorBox
public void setScissorBox(java.awt.Rectangle value)
Sets the scissor box- Parameters:
value
- New value
-
getPolygonMode
public PolygonMode getPolygonMode()
Gets the polygon's render mode.
-
setPolygonMode
public void setPolygonMode(PolygonMode value)
Sets the polygon's render mode.- Parameters:
value
- New value
-
compareTo
public int compareTo(RenderState other)
Compare the render state with another instance- Specified by:
compareTo
in interfacejava.lang.Comparable<RenderState>
- Parameters:
other
-
-
hashCode
public int hashCode()
Returns the hash code for this instance.- Overrides:
hashCode
in classjava.lang.Object
-
close
public void close()
Dispose theRenderState
and release all internal resources.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-