pop_video_context(3)
π pop_video_context(3) β the Arcan Lua API one, bestie π
okay so real talk, this is a page from the Arcan Lua API and it's about yeeting your current video context. stay with me, it's shorter than a TikTok attention span and way more useful π«Ά
β¨ NAME β¨
pop_video_context β deallocate the current video context. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
nil
pop_video_context()
it returns nil, it takes nothing, it just pops. no arguments, no drama, no cap. β¨
π¦ DESCRIPTION π¦
so here's the lore: every video object is bound to at least one rendering context β literally, that's the whole system. the currently active context lives on a stack, like a little tower of contexts, and this function is the pop. π
popping means deleting all the video-subsystem-related resources that are currently bound to the active context. all of them. gone. not a drill. π
π NOTES π
- popping the outmost context is basically the same energy as deleting all allocated
vids. same outcome, different path, iykyk. π
π₯ EXAMPLE π₯
function pop_video_context0()
a = fill_surface(VRESW, VRESH, 0, 255, 0);
show_image(a);
pop_video_context(); -- a should disappear
move_image(a, 0, 0); -- should yield a crash
end
so you fill a surface, you show it, you pop the context β a should disappear β¨ β and then the moment you try to move_image it? crash. that's not a bug, that's the point, bestie. a is a ghost now, don't touch ghosts π»
π SEE ALSO π
push it, pop it, check the size, check the usage β the whole friend group, together at last π
and that's the page!! this one's brought to you by vidsys, dated October 2026 β go forth and pop responsibly, mwah ππ
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms