RenderState
Contents
[
Hide
]RenderState class
Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.
Methods
constructor
| Name | Description |
|---|---|
| constructor() | Constructor of RenderState |
Result:
getBlend
| Name | Description |
|---|---|
| getBlend() | Enable or disable the fragment blending. |
Result:
setBlend
| Name | Description |
|---|---|
| setBlend(value) | Enable or disable the fragment blending. |
Result:
getBlendColor
| Name | Description |
|---|---|
| getBlendColor() | Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR |
Result:
setBlendColor
| Name | Description |
|---|---|
| setBlendColor(value) | Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR |
Result:
getSourceBlendFactor
| Name | Description |
|---|---|
| getSourceBlendFactor() | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. |
Result:
setSourceBlendFactor
| Name | Description |
|---|---|
| setSourceBlendFactor(value) | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. |
Result:
getDestinationBlendFactor
| Name | Description |
|---|---|
| getDestinationBlendFactor() | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. |
Result:
setDestinationBlendFactor
| Name | Description |
|---|---|
| setDestinationBlendFactor(value) | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. |
Result:
getCullFace
| Name | Description |
|---|---|
| getCullFace() | Enable or disable cull face |
Result:
setCullFace
| Name | Description |
|---|---|
| setCullFace(value) | Enable or disable cull face |
Result:
getCullFaceMode
| Name | Description |
|---|---|
| getCullFaceMode() | Gets or sets which face will be culled. The value of the property is CullFaceMode integer constant. |
Result:
setCullFaceMode
| Name | Description |
|---|---|
| setCullFaceMode(value) | Gets or sets which face will be culled. The value of the property is CullFaceMode integer constant. |
Result:
getFrontFace
| Name | Description |
|---|---|
| getFrontFace() | Gets or sets which order is front face. The value of the property is FrontFace integer constant. |
Result:
setFrontFace
| Name | Description |
|---|---|
| setFrontFace(value) | Gets or sets which order is front face. The value of the property is FrontFace integer constant. |
Result:
getDepthTest
| Name | Description |
|---|---|
| getDepthTest() | Enable or disable the depth test. |
Result:
setDepthTest
| Name | Description |
|---|---|
| setDepthTest(value) | Enable or disable the depth test. |
Result:
getDepthMask
| Name | Description |
|---|---|
| getDepthMask() | Enable or disable the depth writing. |
Result:
setDepthMask
| Name | Description |
|---|---|
| setDepthMask(value) | Enable or disable the depth writing. |
Result:
getDepthFunction
| Name | Description |
|---|---|
| getDepthFunction() | Gets or sets the compare function used in depth test The value of the property is CompareFunction integer constant. |
Result:
setDepthFunction
| Name | Description |
|---|---|
| setDepthFunction(value) | Gets or sets the compare function used in depth test The value of the property is CompareFunction integer constant. |
Result:
getStencilTest
| Name | Description |
|---|---|
| getStencilTest() | Enable or disable the stencil test. |
Result:
setStencilTest
| Name | Description |
|---|---|
| setStencilTest(value) | Enable or disable the stencil test. |
Result:
getStencilReference
| Name | Description |
|---|---|
| getStencilReference() | Gets or sets the reference value for the stencil test. |
Result:
setStencilReference
| Name | Description |
|---|---|
| setStencilReference(value) | Gets or sets the reference value for the stencil test. |
Result:
getStencilMask
| Name | Description |
|---|---|
| getStencilMask() | Gets or sets the mask that is ANDed with the both reference and stored stencil value when test is done. |
Result:
getStencilFrontFace
| Name | Description |
|---|---|
| getStencilFrontFace() | Gets the stencil state for front face. |
Result:
getStencilBackFace
| Name | Description |
|---|---|
| getStencilBackFace() | Gets the stencil state for back face. |
Result:
getScissorTest
| Name | Description |
|---|---|
| getScissorTest() | Enable or disable scissor test |
Result:
setScissorTest
| Name | Description |
|---|---|
| setScissorTest(value) | Enable or disable scissor test |
Result:
getPolygonMode
| Name | Description |
|---|---|
| getPolygonMode() | Gets or sets the polygon’s render mode. The value of the property is PolygonMode integer constant. |
Result:
setPolygonMode
| Name | Description |
|---|---|
| setPolygonMode(value) | Gets or sets the polygon’s render mode. The value of the property is PolygonMode integer constant. |
Result:
equals
| Name | Description |
|---|---|
| equals(obj) | Returns a value indicating whether this instance is equal to a specified object. |
Result:
hashCode
| Name | Description |
|---|---|
| hashCode() | Returns the hash code for this instance. |
Result:
compareTo
| Name | Description |
|---|---|
| compareTo(other) | Compare the render state with another instance |
Parameters:
| Name | Type | Description |
|---|---|---|
| othe | RenderState | null |
Result: Number