Difference between revisions of "love.graphics.getBlendMode"

m
m (Newin template)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Gets the blending mode.
+
{{newin|[[0.2.0]]|020|type=function}}
 +
Gets the [[BlendMode|blending mode]].
 
== Function ==
 
== Function ==
 +
{{newin|[[0.10.0]]|100|type=variant}}
 +
=== Synopsis ===
 +
<source lang="lua">
 +
mode, alphamode = love.graphics.getBlendMode( )
 +
</source>
 +
=== Arguments ===
 +
None.
 +
=== Returns ===
 +
{{param|BlendMode|mode|The current blend mode.}}
 +
{{param|BlendAlphaMode|alphamode|The current blend alpha mode – it determines how the alpha of drawn objects affects blending.}}
 +
 +
== Function ==
 +
{{oldin|[[0.10.0]]|100|type=variant}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 11: Line 25:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[love.graphics.setBlendMode]]
 +
* [[BlendMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets the blending mode.}}
 
{{#set:Description=Gets the blending mode.}}
 +
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getBlendMode}}
 
{{i18n|love.graphics.getBlendMode}}

Latest revision as of 09:08, 31 December 2019

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

Gets the blending mode.

Function

Available since LÖVE 0.10.0
This variant is not supported in earlier versions.

Synopsis

mode, alphamode = love.graphics.getBlendMode( )

Arguments

None.

Returns

BlendMode mode
The current blend mode.
BlendAlphaMode alphamode
The current blend alpha mode – it determines how the alpha of drawn objects affects blending.

Function

Removed in LÖVE 0.10.0
This variant is not supported in that and later versions.

Synopsis

mode = love.graphics.getBlendMode( )

Arguments

None.

Returns

BlendMode mode
The current blend mode.

See Also


Other Languages