Difference between revisions of "love.graphics.getStackDepth"

(Created page)
 
m
Line 17: Line 17:
 
* [[love.graphics.pop]]
 
* [[love.graphics.pop]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
{{#set:Sub-Category=State}}
 
{{#set:Description=Gets the current depth of the transform / state stack (the number of [[love.graphics.push|pushes]] without corresponding [[love.graphics.pop|pops]]).}}
 
{{#set:Description=Gets the current depth of the transform / state stack (the number of [[love.graphics.push|pushes]] without corresponding [[love.graphics.pop|pops]]).}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getStackDepth}}
 
{{i18n|love.graphics.getStackDepth}}

Revision as of 00:43, 7 January 2018

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

Gets the current depth of the transform / state stack (the number of pushes without corresponding pops).

Function

Synopsis

depth = love.graphics.getStackDepth( )

Arguments

None.

Returns

number depth
The current depth of the transform and state love.graphics stack.

See Also


Other Languages