RenderState

RenderState class

Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.

Methods

constructor

NameDescription
constructor()Constructor of RenderState

Result:


getBlend

NameDescription
getBlend()Enable or disable the fragment blending.

Result:


setBlend

NameDescription
setBlend(value)Enable or disable the fragment blending.

Result:


getBlendColor

NameDescription
getBlendColor()Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR

Result:


setBlendColor

NameDescription
setBlendColor(value)Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR

Result:


getSourceBlendFactor

NameDescription
getSourceBlendFactor()Gets or sets how the color is blended. The value of the property is BlendFactor integer constant.

Result:


setSourceBlendFactor

NameDescription
setSourceBlendFactor(value)Gets or sets how the color is blended. The value of the property is BlendFactor integer constant.

Result:


getDestinationBlendFactor

NameDescription
getDestinationBlendFactor()Gets or sets how the color is blended. The value of the property is BlendFactor integer constant.

Result:


setDestinationBlendFactor

NameDescription
setDestinationBlendFactor(value)Gets or sets how the color is blended. The value of the property is BlendFactor integer constant.

Result:


getCullFace

NameDescription
getCullFace()Enable or disable cull face

Result:


setCullFace

NameDescription
setCullFace(value)Enable or disable cull face

Result:


getCullFaceMode

NameDescription
getCullFaceMode()Gets or sets which face will be culled. The value of the property is CullFaceMode integer constant.

Result:


setCullFaceMode

NameDescription
setCullFaceMode(value)Gets or sets which face will be culled. The value of the property is CullFaceMode integer constant.

Result:


getFrontFace

NameDescription
getFrontFace()Gets or sets which order is front face. The value of the property is FrontFace integer constant.

Result:


setFrontFace

NameDescription
setFrontFace(value)Gets or sets which order is front face. The value of the property is FrontFace integer constant.

Result:


getDepthTest

NameDescription
getDepthTest()Enable or disable the depth test.

Result:


setDepthTest

NameDescription
setDepthTest(value)Enable or disable the depth test.

Result:


getDepthMask

NameDescription
getDepthMask()Enable or disable the depth writing.

Result:


setDepthMask

NameDescription
setDepthMask(value)Enable or disable the depth writing.

Result:


getDepthFunction

NameDescription
getDepthFunction()Gets or sets the compare function used in depth test The value of the property is CompareFunction integer constant.

Result:


setDepthFunction

NameDescription
setDepthFunction(value)Gets or sets the compare function used in depth test The value of the property is CompareFunction integer constant.

Result:


getStencilTest

NameDescription
getStencilTest()Enable or disable the stencil test.

Result:


setStencilTest

NameDescription
setStencilTest(value)Enable or disable the stencil test.

Result:


getStencilReference

NameDescription
getStencilReference()Gets or sets the reference value for the stencil test.

Result:


setStencilReference

NameDescription
setStencilReference(value)Gets or sets the reference value for the stencil test.

Result:


getStencilMask

NameDescription
getStencilMask()Gets or sets the mask that is ANDed with the both reference and stored stencil value when test is done.

Result:


getStencilFrontFace

NameDescription
getStencilFrontFace()Gets the stencil state for front face.

Result:


getStencilBackFace

NameDescription
getStencilBackFace()Gets the stencil state for back face.

Result:


getScissorTest

NameDescription
getScissorTest()Enable or disable scissor test

Result:


setScissorTest

NameDescription
setScissorTest(value)Enable or disable scissor test

Result:


getPolygonMode

NameDescription
getPolygonMode()Gets or sets the polygon’s render mode. The value of the property is PolygonMode integer constant.

Result:


setPolygonMode

NameDescription
setPolygonMode(value)Gets or sets the polygon’s render mode. The value of the property is PolygonMode integer constant.

Result:


equals

NameDescription
equals(obj)Returns a value indicating whether this instance is equal to a specified object.

Result:


hashCode

NameDescription
hashCode()Returns the hash code for this instance.

Result:


compareTo

NameDescription
compareTo(other)Compare the render state with another instance

Parameters:

NameTypeDescription
otheRenderStatenull

Result: Number