RenderState
Inheritance: java.lang.Object
All Implemented Interfaces: java.io.Closeable, java.lang.Comparable
public class RenderState implements Closeable, Comparable<RenderState>
Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.
Constructors
Constructor | Description |
---|---|
RenderState() | Constructor of RenderState |
Methods
Method | Description |
---|---|
close() | Dispose the RenderState and release all internal resources. |
compareTo(RenderState other) | Compare the render state with another instance |
equals(Object obj) | Returns a value indicating whether this instance is equal to a specified object. |
getBlend() | Enable or disable the fragment blending. |
getBlendColor() | Gets the blend color where used in BlendFactor.CONSTANT_COLOR |
getClass() | |
getCullFace() | Enable or disable cull face |
getCullFaceMode() | Gets which face will be culled. |
getDepthFunction() | Gets the compare function used in depth test |
getDepthMask() | Enable or disable the depth writing. |
getDepthTest() | Enable or disable the depth test. |
getDestinationBlendFactor() | Gets how the color is blended. |
getFrontFace() | Gets which order is front face. |
getPolygonMode() | Gets the polygon’s render mode. |
getScissorTest() | Enable or disable scissor test |
getSourceBlendFactor() | Gets how the color is blended. |
getStencilBackFace() | Gets the stencil state for back face. |
getStencilFrontFace() | Gets the stencil state for front face. |
getStencilMask() | Gets the mask that is ANDed with the both reference and stored stencil value when test is done. |
getStencilReference() | Gets the reference value for the stencil test. |
getStencilTest() | Enable or disable the stencil test. |
hashCode() | Returns the hash code for this instance. |
notify() | |
notifyAll() | |
setBlend(boolean value) | Enable or disable the fragment blending. |
setBlendColor(FVector4 value) | Sets the blend color where used in BlendFactor.CONSTANT_COLOR |
setCullFace(boolean value) | Enable or disable cull face |
setCullFaceMode(int value) | Sets which face will be culled. |
setDepthFunction(CompareFunction value) | Sets the compare function used in depth test |
setDepthMask(boolean value) | Enable or disable the depth writing. |
setDepthTest(boolean value) | Enable or disable the depth test. |
setDestinationBlendFactor(BlendFactor value) | Sets how the color is blended. |
setFrontFace(FrontFace value) | Sets which order is front face. |
setPolygonMode(PolygonMode value) | Sets the polygon’s render mode. |
setScissorTest(boolean value) | Enable or disable scissor test |
setSourceBlendFactor(BlendFactor value) | Sets how the color is blended. |
setStencilMask(int value) | Sets the mask that is ANDed with the both reference and stored stencil value when test is done. |
setStencilReference(int value) | Sets the reference value for the stencil test. |
setStencilTest(boolean value) | Enable or disable the stencil test. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
RenderState()
public RenderState()
Constructor of RenderState
close()
public void close()
Dispose the RenderState and release all internal resources.
compareTo(RenderState other)
public int compareTo(RenderState other)
Compare the render state with another instance
Parameters:
Parameter | Type | Description |
---|---|---|
other | RenderState | Another render state to compare |
Returns: int
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object |
Returns: boolean
getBlend()
public boolean getBlend()
Enable or disable the fragment blending.
Returns: boolean - Enable or disable the fragment blending.
getBlendColor()
public FVector4 getBlendColor()
Gets the blend color where used in BlendFactor.CONSTANT_COLOR
Returns: FVector4 - the blend color where used in BlendFactor.CONSTANT_COLOR
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCullFace()
public boolean getCullFace()
Enable or disable cull face
Returns: boolean - Enable or disable cull face
getCullFaceMode()
public int getCullFaceMode()
Gets which face will be culled.
Returns: int - which face will be culled.
getDepthFunction()
public CompareFunction getDepthFunction()
Gets the compare function used in depth test
Returns: CompareFunction - the compare function used in depth test
getDepthMask()
public boolean getDepthMask()
Enable or disable the depth writing.
Returns: boolean - Enable or disable the depth writing.
getDepthTest()
public boolean getDepthTest()
Enable or disable the depth test.
Returns: boolean - Enable or disable the depth test.
getDestinationBlendFactor()
public BlendFactor getDestinationBlendFactor()
Gets how the color is blended.
Returns: BlendFactor - how the color is blended.
getFrontFace()
public FrontFace getFrontFace()
Gets which order is front face.
Returns: FrontFace - which order is front face.
getPolygonMode()
public PolygonMode getPolygonMode()
Gets the polygon’s render mode.
Returns: PolygonMode - the polygon’s render mode.
getScissorTest()
public boolean getScissorTest()
Enable or disable scissor test
Returns: boolean - Enable or disable scissor test
getSourceBlendFactor()
public BlendFactor getSourceBlendFactor()
Gets how the color is blended.
Returns: BlendFactor - how the color is blended.
getStencilBackFace()
public StencilState getStencilBackFace()
Gets the stencil state for back face.
Returns: StencilState - the stencil state for back face.
getStencilFrontFace()
public StencilState getStencilFrontFace()
Gets the stencil state for front face.
Returns: StencilState - the stencil state for front face.
getStencilMask()
public int getStencilMask()
Gets the mask that is ANDed with the both reference and stored stencil value when test is done.
Returns: int - the mask that is ANDed with the both reference and stored stencil value when test is done.
getStencilReference()
public int getStencilReference()
Gets the reference value for the stencil test.
Returns: int - the reference value for the stencil test.
getStencilTest()
public boolean getStencilTest()
Enable or disable the stencil test.
Returns: boolean - Enable or disable the stencil test.
hashCode()
public int hashCode()
Returns the hash code for this instance.
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBlend(boolean value)
public void setBlend(boolean value)
Enable or disable the fragment blending.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setBlendColor(FVector4 value)
public void setBlendColor(FVector4 value)
Sets the blend color where used in BlendFactor.CONSTANT_COLOR
Parameters:
Parameter | Type | Description |
---|---|---|
value | FVector4 | New value |
setCullFace(boolean value)
public void setCullFace(boolean value)
Enable or disable cull face
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setCullFaceMode(int value)
public void setCullFaceMode(int value)
Sets which face will be culled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | New value |
setDepthFunction(CompareFunction value)
public void setDepthFunction(CompareFunction value)
Sets the compare function used in depth test
Parameters:
Parameter | Type | Description |
---|---|---|
value | CompareFunction | New value |
setDepthMask(boolean value)
public void setDepthMask(boolean value)
Enable or disable the depth writing.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setDepthTest(boolean value)
public void setDepthTest(boolean value)
Enable or disable the depth test.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setDestinationBlendFactor(BlendFactor value)
public void setDestinationBlendFactor(BlendFactor value)
Sets how the color is blended.
Parameters:
Parameter | Type | Description |
---|---|---|
value | BlendFactor | New value |
setFrontFace(FrontFace value)
public void setFrontFace(FrontFace value)
Sets which order is front face.
Parameters:
Parameter | Type | Description |
---|---|---|
value | FrontFace | New value |
setPolygonMode(PolygonMode value)
public void setPolygonMode(PolygonMode value)
Sets the polygon’s render mode.
Parameters:
Parameter | Type | Description |
---|---|---|
value | PolygonMode | New value |
setScissorTest(boolean value)
public void setScissorTest(boolean value)
Enable or disable scissor test
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setSourceBlendFactor(BlendFactor value)
public void setSourceBlendFactor(BlendFactor value)
Sets how the color is blended.
Parameters:
Parameter | Type | Description |
---|---|---|
value | BlendFactor | New value |
setStencilMask(int value)
public void setStencilMask(int value)
Sets the mask that is ANDed with the both reference and stored stencil value when test is done.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | New value |
setStencilReference(int value)
public void setStencilReference(int value)
Sets the reference value for the stencil test.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | New value |
setStencilTest(boolean value)
public void setStencilTest(boolean value)
Enable or disable the stencil test.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |