## RenderState class

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


## Methods

### constructor{#constructor}

| Name | Description |
| --- | --- |
| constructor() | Constructor of RenderState | 

 **Result:**



---


### getBlend{#getBlend}

| Name | Description |
| --- | --- |
| getBlend() | Enable or disable the fragment blending. | 

 **Result:**



---


### setBlend{#setBlend}

| Name | Description |
| --- | --- |
| setBlend(value) | Enable or disable the fragment blending. | 

 **Result:**



---


### getBlendColor{#getBlendColor}

| Name | Description |
| --- | --- |
| getBlendColor() | Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR | 

 **Result:**



---


### setBlendColor{#setBlendColor}

| Name | Description |
| --- | --- |
| setBlendColor(value) | Gets or sets the blend color where used in BlendFactor.CONSTANT_COLOR | 

 **Result:**



---


### getSourceBlendFactor{#getSourceBlendFactor}

| Name | Description |
| --- | --- |
| getSourceBlendFactor() | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. | 

 **Result:**



---


### setSourceBlendFactor{#setSourceBlendFactor}

| Name | Description |
| --- | --- |
| setSourceBlendFactor(value) | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. | 

 **Result:**



---


### getDestinationBlendFactor{#getDestinationBlendFactor}

| Name | Description |
| --- | --- |
| getDestinationBlendFactor() | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. | 

 **Result:**



---


### setDestinationBlendFactor{#setDestinationBlendFactor}

| Name | Description |
| --- | --- |
| setDestinationBlendFactor(value) | Gets or sets how the color is blended. The value of the property is BlendFactor integer constant. | 

 **Result:**



---


### getCullFace{#getCullFace}

| Name | Description |
| --- | --- |
| getCullFace() | Enable or disable cull face | 

 **Result:**



---


### setCullFace{#setCullFace}

| Name | Description |
| --- | --- |
| setCullFace(value) | Enable or disable cull face | 

 **Result:**



---


### getCullFaceMode{#getCullFaceMode}

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

 **Result:**



---


### setCullFaceMode{#setCullFaceMode}

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

 **Result:**



---


### getFrontFace{#getFrontFace}

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

 **Result:**



---


### setFrontFace{#setFrontFace}

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

 **Result:**



---


### getDepthTest{#getDepthTest}

| Name | Description |
| --- | --- |
| getDepthTest() | Enable or disable the depth test. | 

 **Result:**



---


### setDepthTest{#setDepthTest}

| Name | Description |
| --- | --- |
| setDepthTest(value) | Enable or disable the depth test. | 

 **Result:**



---


### getDepthMask{#getDepthMask}

| Name | Description |
| --- | --- |
| getDepthMask() | Enable or disable the depth writing. | 

 **Result:**



---


### setDepthMask{#setDepthMask}

| Name | Description |
| --- | --- |
| setDepthMask(value) | Enable or disable the depth writing. | 

 **Result:**



---


### getDepthFunction{#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{#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{#getStencilTest}

| Name | Description |
| --- | --- |
| getStencilTest() | Enable or disable the stencil test. | 

 **Result:**



---


### setStencilTest{#setStencilTest}

| Name | Description |
| --- | --- |
| setStencilTest(value) | Enable or disable the stencil test. | 

 **Result:**



---


### getStencilReference{#getStencilReference}

| Name | Description |
| --- | --- |
| getStencilReference() | Gets or sets the reference value for the stencil test. | 

 **Result:**



---


### setStencilReference{#setStencilReference}

| Name | Description |
| --- | --- |
| setStencilReference(value) | Gets or sets the reference value for the stencil test. | 

 **Result:**



---


### getStencilMask{#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{#getStencilFrontFace}

| Name | Description |
| --- | --- |
| getStencilFrontFace() | Gets the stencil state for front face. | 

 **Result:**



---


### getStencilBackFace{#getStencilBackFace}

| Name | Description |
| --- | --- |
| getStencilBackFace() | Gets the stencil state for back face. | 

 **Result:**



---


### getScissorTest{#getScissorTest}

| Name | Description |
| --- | --- |
| getScissorTest() | Enable or disable scissor test | 

 **Result:**



---


### setScissorTest{#setScissorTest}

| Name | Description |
| --- | --- |
| setScissorTest(value) | Enable or disable scissor test | 

 **Result:**



---


### getPolygonMode{#getPolygonMode}

| Name | Description |
| --- | --- |
| getPolygonMode() | Gets or sets the polygon's render mode. The value of the property is PolygonMode integer constant. | 

 **Result:**



---


### setPolygonMode{#setPolygonMode}

| Name | Description |
| --- | --- |
| setPolygonMode(value) | Gets or sets the polygon's render mode. The value of the property is PolygonMode integer constant. | 

 **Result:**



---


### equals{#equals}

| Name | Description |
| --- | --- |
| equals(obj) | Returns a value indicating whether this instance is equal to a specified object. | 

 **Result:**



---


### hashCode{#hashCode}

| Name | Description |
| --- | --- |
| hashCode() | Returns the hash code for this instance. | 

 **Result:**



---


### compareTo{#compareTo}

| Name | Description |
| --- | --- |
| compareTo(other) | Compare the render state with another instance | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|  othe | RenderState | null |

 **Result:**
Number


---



