storepop_video_context(3)
π storepop_video_context(3) β the Arcan Lua API one
So bestie, the manual name here is storepop_video_context(3) and it lives in the Arcan Lua API world β welcome to the vidsys girlies π
β¨ NAME β¨
storepop_video_context β literally renders your current video context into an object, then pops the context. That's the whole vibe. πΈ
π¦ SYNOPSIS π¦
contextind, newvid
storepop_video_context()
Two return values, no arguments, no drama. Periodt. β¨
π DESCRIPTION π
Okay so the storepush/storepop category of functions is basically the regular push/pop context functions but with a little something extra, iykyk π«Ά
The difference? The new context will contain an object whose storage holds a screenshot of the previous context. Like, the old context got its picture taken before it left the group chat. Iconic behavior honestly. πΈ
π NOTES π
- If the underlying context is fully allocated, the function will return
BADIDβ but listen, the pop operation will, however, suceed. So don't panic, it still goes through π - This is a reasonably costly operation, ngl. It relies on using the screenshot function into a temporary buffer, which is then used as input to
rawobject. So it's giving main character energy but it's also giving expensive energy. Be mindful, bestie π
π₯ EXAMPLE π₯
function storepop_video_context0()
a = fill_surface(100, 100, 0, 255, 0);
show_image(a);
b = storepop_video_context();
show_image(b);
print(valid_vid(a), valid_vid(b));
end
That's it. That's the whole demonstration. Slay. π
π SEE ALSO π
Go read those too, they're the rest of the crew fr fr π§
Big sign-off energy: this page comes to you from vidsys, dated October 2026, and yes she's still rocking the same storepop_video_context(3) title at the bottom too π π¦ β¨
π¦ 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