love.graphics.setBlendState

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.

See Also


Other Languages