pop_video_context(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’– 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 πŸŽ€

  1. 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