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 voidclose()Dispose theRenderStateand release all internal resources.intcompareTo(RenderState other)Compare the render state with another instancebooleanequals(java.lang.Object obj)Returns a value indicating whether this instance is equal to a specified object.booleangetBlend()Enable or disable the fragment blending.FVector4getBlendColor()Gets the blend color where used inBlendFactor.CONSTANT_COLORbooleangetCullFace()Enable or disable cull faceintgetCullFaceMode()Gets which face will be culled.CompareFunctiongetDepthFunction()Gets the compare function used in depth testbooleangetDepthMask()Enable or disable the depth writing.booleangetDepthTest()Enable or disable the depth test.BlendFactorgetDestinationBlendFactor()Gets how the color is blended.FrontFacegetFrontFace()Gets which order is front face.PolygonModegetPolygonMode()Gets the polygon's render mode.java.awt.RectanglegetScissorBox()Gets the scissor boxbooleangetScissorTest()Enable or disable scissor testBlendFactorgetSourceBlendFactor()Gets how the color is blended.StencilStategetStencilBackFace()Gets the stencil state for back face.StencilStategetStencilFrontFace()Gets the stencil state for front face.intgetStencilMask()Gets the mask that is ANDed with the both reference and stored stencil value when test is done.intgetStencilReference()Gets the reference value for the stencil test.booleangetStencilTest()Enable or disable the stencil test.inthashCode()Returns the hash code for this instance.voidsetBlend(boolean value)Enable or disable the fragment blending.voidsetBlendColor(FVector4 value)Sets the blend color where used inBlendFactor.CONSTANT_COLORvoidsetCullFace(boolean value)Enable or disable cull facevoidsetCullFaceMode(int value)Sets which face will be culled.voidsetDepthFunction(CompareFunction value)Sets the compare function used in depth testvoidsetDepthMask(boolean value)Enable or disable the depth writing.voidsetDepthTest(boolean value)Enable or disable the depth test.voidsetDestinationBlendFactor(BlendFactor value)Sets how the color is blended.voidsetFrontFace(FrontFace value)Sets which order is front face.voidsetPolygonMode(PolygonMode value)Sets the polygon's render mode.voidsetScissorBox(java.awt.Rectangle value)Sets the scissor boxvoidsetScissorTest(boolean value)Enable or disable scissor testvoidsetSourceBlendFactor(BlendFactor value)Sets how the color is blended.voidsetStencilMask(int value)Sets the mask that is ANDed with the both reference and stored stencil value when test is done.voidsetStencilReference(int value)Sets the reference value for the stencil test.voidsetStencilTest(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:
equalsin 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:
compareToin interfacejava.lang.Comparable<RenderState>- Parameters:
other-
-
hashCode
public int hashCode()
Returns the hash code for this instance.- Overrides:
hashCodein classjava.lang.Object
-
close
public void close()
Dispose theRenderStateand release all internal resources.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-