Difference between revisions of "love.graphics.setBlendState"

(Created page)
 
m
Line 5: Line 5:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.graphics.setBlendState( operation, srcfactor, dstfactor )
+
love.graphics.setBlendState( operation, srcFactor, dstFactor )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|BlendOperation|operation|The blend operation to use for RGB and alpha.}}
 
{{param|BlendOperation|operation|The blend operation to use for RGB and alpha.}}
{{param|BlendFactor|srcfactor|The blend factor to use for source RGB and source alpha.}}
+
{{param|BlendFactor|srcFactor|The blend factor to use for source RGB and source alpha.}}
{{param|BlendFactor|dstfactor|The blend factor to use for destination RGB and destination alpha.}}
+
{{param|BlendFactor|dstFactor|The blend factor to use for destination RGB and destination alpha.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 17: Line 17:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
love.graphics.setBlendState( operationRGB, operationA, srcfactorRGB, srcfactorA, dstfactorRGB, dstfactorA )
+
love.graphics.setBlendState( operationRGB, operationA, srcFactorRGB, srcFactorA, dstFactorRGB, dstFactorA )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|BlendOperation|operationRGB|The blend operation to use for RGB.}}
 
{{param|BlendOperation|operationRGB|The blend operation to use for RGB.}}
 
{{param|BlendOperation|operationA|The blend operation to use for alpha.}}
 
{{param|BlendOperation|operationA|The blend operation to use for alpha.}}
{{param|BlendFactor|srcfactorRGB|The blend factor to use for source RGB.}}
+
{{param|BlendFactor|srcFactorRGB|The blend factor to use for source RGB.}}
{{param|BlendFactor|srcfactorA|The blend factor to use for source alpha.}}
+
{{param|BlendFactor|srcFactorA|The blend factor to use for source alpha.}}
{{param|BlendFactor|dstfactorRGB|The blend factor to use for destination RGB.}}
+
{{param|BlendFactor|dstFactorRGB|The blend factor to use for destination RGB.}}
{{param|BlendFactor|dstfactorA|The blend factor to use for destination alpha.}}
+
{{param|BlendFactor|dstFactorA|The blend factor to use for destination alpha.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 16:27, 1 October 2023

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