vpSetDebug(3)

πŸ“¦ version 1.0c7, in fedora 43, fedora 44

πŸ’– vpSetDebug β€” the manual page, but make it cute πŸ’–

okay bestie, welcome to vpSetDebug(3) from the Library Functions Manual β€” yes this is a real manpage, and yes we're gonna make it slay ✨


🌸 NAME 🌸

vpSetDebug β€” turn your debugging options on and off, literally that's it πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <volpack.h>

vpResult
vpSetDebug(vpc, flag, value)
    vpContext *vpc;
    int flag;
    int value;

✨ ARGUMENTS ✨

  • vpc β€” the VolPack context you got from vpCreateContext. your main character 🫢
  • flag β€” a constant that says which debugging option we're adjusting. pick your fighter πŸ’…
  • value β€” the new value for that option. it's a boolean, so it's giving 0 or 1, no in-between 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so vpSetDebug is the girl who enables or disables a debugging option inside a rendering context. what do debugging options do? they make messages print out while the code is running. and ngl, those messages are probably useless unless you have a genuinely good understanding of the source code β€” like, they're not for the casuals, iykyk 😭

the logic is simple: if value is 0, the option is disabled. if it's anything else, it's enabled. periodt.

here's the full roster of options, all of them, no skips, we don't gatekeep:

  • VPDEBUG_VIEW β€” view transform calculations πŸ”₯
  • VPDEBUG_RENDER β€” high-level rendering stages ✨
  • VPDEBUG_RBUF β€” intermediate image (render buffer) allocation πŸŽ€
  • VPDEBUG_OPCCORRECT β€” opacity correction πŸ’…
  • VPDEBUG_DEPTHCUE β€” depth cueing 🌊
  • VPDEBUG_PYRAMID β€” pyramid construction πŸ”Ί
  • VPDEBUG_OCTREE β€” octree construction 🌳
  • VPDEBUG_CLSFYOCTREE β€” octree classification 🏷️
  • VPDEBUG_OCTREERUNS β€” runs computed from octree πŸƒ
  • VPDEBUG_OCTREETRAVERSE β€” octree traversal 🚢
  • VPDEBUG_TRANSPOSE β€” volume transposing πŸ”„
  • VPDEBUG_COMPOSITE β€” compositing 🧚
⚠️ okay this is the important part, do not scroll past: the VolPack library must be compiled with the -DDEBUG compiler option for this function to have any effect at all. without it you're just out here calling a function that does nothing, which is lowkey tragic πŸ’€

πŸ’€ ERRORS πŸ’€

the normal return value is VP_OK β€” that's the good ending, we love her πŸ’–

and here's the one error return value that's possible:

  • VPERROR_BAD_OPTION β€” the flag argument is invalid. you passed something fake, bestie, and she noticed πŸ™ˆ

🌈 SEE ALSO 🌈

VolPack(3), vpCreateContext(3)


and that's the whole page, you ate it, no crumbs left πŸ’…

this has been the VolPack vpSetDebug(3) page, brought to you by VolPack itself β€” go read the source code, bestie, that's where the real lore lives ✨🫢

πŸ“¦ where this page comes from