Difference between revisions of "love.graphics.setBlendState"

m
m (Add link to visual glBlendFunc.)
 
Line 39: Line 39:
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
 +
== Notes ==
 +
You can use [https://www.andersriggelsen.dk/glblendfunc.php Visual glBlendFunc + glBlendEquation Tool] to (approximately) visualize the blending state.
  
 
== See Also ==
 
== See Also ==

Latest revision as of 17:49, 14 April 2024

Available since LÖVE 12.0
This function is not supported in earlier versions.

Sets the low-level blending state. love.graphics.setBlendMode is a simpler function for setting a higher level blending mode.

Function

Synopsis

love.graphics.setBlendState( operation, srcFactor, dstFactor )

Arguments

BlendOperation operation
The blend operation to use for RGB and alpha.
BlendFactor srcFactor
The blend factor to use for source RGB and source alpha.
BlendFactor dstFactor
The blend factor to use for destination RGB and destination alpha.

Returns

Nothing.

Function

Synopsis

love.graphics.setBlendState( operationRGB, operationA, srcFactorRGB, srcFactorA, dstFactorRGB, dstFactorA )

Arguments

BlendOperation operationRGB
The blend operation to use for RGB.
BlendOperation operationA
The blend operation to use for alpha.
BlendFactor srcFactorRGB
The blend factor to use for source RGB.
BlendFactor srcFactorA
The blend factor to use for source alpha.
BlendFactor dstFactorRGB
The blend factor to use for destination RGB.
BlendFactor dstFactorA
The blend factor to use for destination alpha.

Returns

Nothing.

Function

Disables all blending.

Synopsis

love.graphics.setBlendState( )

Arguments

None.

Returns

Nothing.

Notes

You can use Visual glBlendFunc + glBlendEquation Tool to (approximately) visualize the blending state.

See Also


Other Languages