love.graphics.getStackDepth
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.
Examples
local function popWholeStack()
for i = 1, love.graphics.getStackDepth() do
love.graphics.pop()
end
end
function love.draw()
love.graphics.push() ; love.graphics.push() ; love.graphics.push()
popWholeStack()
end
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info