image_state(3)

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

πŸŽ€ image_state(3) πŸŽ€

okay so this is image_state from the Arcan Lua API (section 3 of the manual, bestie, we love a classic) and it's genuinely one of those tiny little functions that you'll forget exists until something looks weird and you're like "what even is that thing" πŸ’…


πŸ¦‹ NAME πŸ¦‹

image_state β€” get a string representing the internal subtype of a video object ✨


🌸 SYNOPSIS 🌸

typestr
image_state( vid )

πŸ’– DESCRIPTION πŸ’–

so real talk β€” this one is primarily intended for debugging / troubleshooting purposes 🫢 like it's not the main character of your renderer, it's the little bestie behind the scenes holding up a lil sign telling you what you're actually looking at.

it hands you back a string, and that string will be one of these:

  • frameserver
  • 3d object
  • asynchronous state
  • 3d camera
  • unknown

that's the whole list, no cap πŸ‘‘


⭐ EXAMPLE ⭐

first one, super simple β€” load an image, ask it what it is, print the vibe:

function image_state0()
      local img = load_image("test.png");
      print(image_state(img));
end

🌈 EXAMPLE 🌈

and the second one, where we make a null_surface, tag it as a model, and print... well, img, exactly as written 😭 copy it verbatim and it is what it is:

function image_state1()
      local cam = null_surface(32, 32);
      camtag_model(cam);
      print(image_state(img));
end
no notes, we're keeping it exactly as the page says it β€” you saw it here first πŸ™ˆ

πŸ‘‘ SEE ALSO: πŸ‘‘

  • image

okay that's the whole thing, short and sweet and iconic fr fr πŸŽ€ this page comes to you from the Arcan Lua API, section image_state(3), dated October 2026, and the source is just image πŸ’œ mwah, go debug something, you got this πŸ¦‹βœ¨

πŸ“¦ where this page comes from