{{newin|[[11.0]]|110|type=function}}
Gets the current depth of the transform / state stack (the number of [[love.graphics.push|pushes]] without corresponding [[love.graphics.pop|pops]]).

== Function ==
=== Synopsis ===
<source lang="lua">
depth = love.graphics.getStackDepth( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|depth|The current depth of the transform and state love.graphics stack.}}

== See Also ==
* [[parent::love.graphics]]
* [[love.graphics.push]]
* [[love.graphics.pop]]
[[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]]).}}
== Other Languages ==
{{i18n|love.graphics.getStackDepth}}