/** * <code>setTestEnabled</code> turns alpha testing on and off. True turns on the testing, while false disables it. * * @param value * true to enabled alpha testing, false to disable it. */ public void setTestEnabled(final boolean value) { _testEnabled = value; setNeedsRefresh(true); }
/** * <code>setTestEnabled</code> turns alpha testing on and off. True turns on the testing, while false diables it. * * @param value * true to enabled alpha testing, false to disable it. */ public void setTestEnabled(final boolean value) { _testEnabled = value; setNeedsRefresh(true); }
/** * <code>setBlendEnabled</code> sets whether or not blending is enabled. * * @param value * true to enable the blending, false to disable it. */ public void setBlendEnabled(final boolean value) { _blendEnabled = value; setNeedsRefresh(true); }
/** * <code>setBlendEnabled</code> sets whether or not blending is enabled. * * @param value * true to enable the blending, false to disable it. */ public void setBlendEnabled(final boolean value) { _blendEnabled = value; setNeedsRefresh(true); }
/** * <code>setReference</code> sets the reference value that incoming alpha values are compared to when doing alpha * testing. This is clamped to [0, 1]. * * @param reference * the reference value that alpha values are compared to. */ public void setReference(float reference) { if (reference < 0) { reference = 0; } if (reference > 1) { reference = 1; } _reference = reference; setNeedsRefresh(true); }
/** * <code>setReference</code> sets the reference value that incoming alpha values are compared to when doing alpha * testing. This is clamped to [0, 1]. * * @param reference * the reference value that alpha values are compared to. */ public void setReference(float reference) { if (reference < 0) { reference = 0; } if (reference > 1) { reference = 1; } _reference = reference; setNeedsRefresh(true); }
/** * <code>setSrcFunction</code> sets the source function for the blending equation. If supportsSeparateFunc is false, * this value will be used for RGB and Alpha. * * @param function * the source function for the blending equation. * @throws IllegalArgumentException * if function is null */ public void setSourceFunctionRGB(final SourceFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _sourceFunctionRGB = function; setNeedsRefresh(true); }
/** * <code>setSourceFunctionAlpha</code> sets the source function for the blending equation used with alpha values. * * @param function * the source function for the blending equation for alpha values. * @throws IllegalArgumentException * if function is null */ public void setSourceFunctionAlpha(final SourceFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _sourceFunctionAlpha = function; setNeedsRefresh(true); }
/** * <code>setDestinationFunctionAlpha</code> sets the destination function for the blending equation. * * @param function * the destination function for the blending equation for Alpha values. * @throws IllegalArgumentException * if function is null */ public void setDestinationFunctionAlpha(final DestinationFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _destinationFunctionAlpha = function; setNeedsRefresh(true); }
/** * <code>setDestinationFunctionAlpha</code> sets the destination function for the blending equation. * * @param function * the destination function for the blending equation for Alpha values. * @throws IllegalArgumentException * if function is null */ public void setDestinationFunctionAlpha(final DestinationFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _destinationFunctionAlpha = function; setNeedsRefresh(true); }
/** * <code>setSourceFunctionAlpha</code> sets the source function for the blending equation used with alpha values. * * @param function * the source function for the blending equation for alpha values. * @throws IllegalArgumentException * if function is null */ public void setSourceFunctionAlpha(final SourceFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _sourceFunctionAlpha = function; setNeedsRefresh(true); }
/** * <code>setDestinationFunctionRGB</code> sets the destination function for the blending equation. If * supportsSeparateFunc is false, this value will be used for RGB and Alpha. * * @param function * the destination function for the blending equation for RGB values. * @throws IllegalArgumentException * if function is null */ public void setDestinationFunctionRGB(final DestinationFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _destinationFunctionRGB = function; setNeedsRefresh(true); }
/** * <code>setTestFunction</code> sets the testing function used for the alpha testing. If an invalid value is passed, * the default TF_ALWAYS is used. * * @param function * the testing function used for the alpha testing. * @throws IllegalArgumentException * if function is null */ public void setTestFunction(final TestFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _testFunction = function; setNeedsRefresh(true); }
/** * <code>setDestinationFunctionRGB</code> sets the destination function for the blending equation. If * supportsSeparateFunc is false, this value will be used for RGB and Alpha. * * @param function * the destination function for the blending equation for RGB values. * @throws IllegalArgumentException * if function is null */ public void setDestinationFunctionRGB(final DestinationFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _destinationFunctionRGB = function; setNeedsRefresh(true); }
/** * <code>setSrcFunction</code> sets the source function for the blending equation. If supportsSeparateFunc is false, * this value will be used for RGB and Alpha. * * @param function * the source function for the blending equation. * @throws IllegalArgumentException * if function is null */ public void setSourceFunctionRGB(final SourceFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _sourceFunctionRGB = function; setNeedsRefresh(true); }
/** * <code>setTestFunction</code> sets the testing function used for the alpha testing. If an invalid value is passed, * the default TF_ALWAYS is used. * * @param function * the testing function used for the alpha testing. * @throws IllegalArgumentException * if function is null */ public void setTestFunction(final TestFunction function) { if (function == null) { throw new IllegalArgumentException("function can not be null."); } _testFunction = function; setNeedsRefresh(true); }
blendState.setNeedsRefresh(true); this.updateWorldRenderStates(true);