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

ConstructorDescription
RenderState()Constructor of RenderState

Methods

MethodDescription
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:

ParameterTypeDescription
otherRenderState

Returns: int

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:

ParameterTypeDescription
objjava.lang.Object

Returns: boolean

getBlend()

public boolean getBlend()

Enable or disable the fragment blending.

Returns: boolean

getBlendColor()

public FVector4 getBlendColor()

Gets the blend color where used in BlendFactor.CONSTANT_COLOR

Returns: FVector4

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCullFace()

public boolean getCullFace()

Enable or disable cull face

Returns: boolean

getCullFaceMode()

public int getCullFaceMode()

Gets which face will be culled.

Returns: int

getDepthFunction()

public CompareFunction getDepthFunction()

Gets the compare function used in depth test

Returns: CompareFunction

getDepthMask()

public boolean getDepthMask()

Enable or disable the depth writing.

Returns: boolean

getDepthTest()

public boolean getDepthTest()

Enable or disable the depth test.

Returns: boolean

getDestinationBlendFactor()

public BlendFactor getDestinationBlendFactor()

Gets how the color is blended.

Returns: BlendFactor

getFrontFace()

public FrontFace getFrontFace()

Gets which order is front face.

Returns: FrontFace

getPolygonMode()

public PolygonMode getPolygonMode()

Gets the polygon’s render mode.

Returns: PolygonMode

getScissorTest()

public boolean getScissorTest()

Enable or disable scissor test

Returns: boolean

getSourceBlendFactor()

public BlendFactor getSourceBlendFactor()

Gets how the color is blended.

Returns: BlendFactor

getStencilBackFace()

public StencilState getStencilBackFace()

Gets the stencil state for back face.

Returns: StencilState

getStencilFrontFace()

public StencilState getStencilFrontFace()

Gets the stencil state for front face.

Returns: StencilState

getStencilMask()

public int getStencilMask()

Gets the mask that is ANDed with the both reference and stored stencil value when test is done.

Returns: int

getStencilReference()

public int getStencilReference()

Gets the reference value for the stencil test.

Returns: int

getStencilTest()

public boolean getStencilTest()

Enable or disable the stencil test.

Returns: boolean

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:

ParameterTypeDescription
valuebooleanNew value

setBlendColor(FVector4 value)

public void setBlendColor(FVector4 value)

Sets the blend color where used in BlendFactor.CONSTANT_COLOR

Parameters:

ParameterTypeDescription
valueFVector4New value

setCullFace(boolean value)

public void setCullFace(boolean value)

Enable or disable cull face

Parameters:

ParameterTypeDescription
valuebooleanNew value

setCullFaceMode(int value)

public void setCullFaceMode(int value)

Sets which face will be culled.

Parameters:

ParameterTypeDescription
valueintNew value

setDepthFunction(CompareFunction value)

public void setDepthFunction(CompareFunction value)

Sets the compare function used in depth test

Parameters:

ParameterTypeDescription
valueCompareFunctionNew value

setDepthMask(boolean value)

public void setDepthMask(boolean value)

Enable or disable the depth writing.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setDepthTest(boolean value)

public void setDepthTest(boolean value)

Enable or disable the depth test.

Parameters:

ParameterTypeDescription
valuebooleanNew value

setDestinationBlendFactor(BlendFactor value)

public void setDestinationBlendFactor(BlendFactor value)

Sets how the color is blended.

Parameters:

ParameterTypeDescription
valueBlendFactorNew value

setFrontFace(FrontFace value)

public void setFrontFace(FrontFace value)

Sets which order is front face.

Parameters:

ParameterTypeDescription
valueFrontFaceNew value

setPolygonMode(PolygonMode value)

public void setPolygonMode(PolygonMode value)

Sets the polygon’s render mode.

Parameters:

ParameterTypeDescription
valuePolygonModeNew value

setScissorTest(boolean value)

public void setScissorTest(boolean value)

Enable or disable scissor test

Parameters:

ParameterTypeDescription
valuebooleanNew value

setSourceBlendFactor(BlendFactor value)

public void setSourceBlendFactor(BlendFactor value)

Sets how the color is blended.

Parameters:

ParameterTypeDescription
valueBlendFactorNew 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:

ParameterTypeDescription
valueintNew value

setStencilReference(int value)

public void setStencilReference(int value)

Sets the reference value for the stencil test.

Parameters:

ParameterTypeDescription
valueintNew value

setStencilTest(boolean value)

public void setStencilTest(boolean value)

Enable or disable the stencil test.

Parameters:

ParameterTypeDescription
valuebooleanNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int