Difference between revisions of "love.graphics.getStackDepth"

m
m (0.11.0 -> 11.0)
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{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]]).
 
Gets the current depth of the transform / state stack (the number of [[love.graphics.push|pushes]] without corresponding [[love.graphics.pop|pops]]).
  

Revision as of 12:47, 29 December 2018

Available since LÖVE 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