storepop_video_context(3)

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

πŸ’… 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 πŸ‘‘

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