vpEnable(3)
π vpEnable β the enable/disable girlie of the VolPack library (3)
okay so bestie, welcome to vpEnable(3), a page from the Library Functions Manual β¨ this is the little function that flips boolean options on and off in your rendering context, and honestly? she's simple, she's iconic, she ate π
β¨ NAME β¨
vpEnable β enable or disable options π
πΈ SYNOPSIS πΈ
#include <volpack.h>
vpResult
vpEnable(vpc, option, value)
vpContext *vpc;
int option;
int value;
π¦ ARGUMENTS π¦
vpcβ the VolPack context, and likeβ¦ she comes fromvpCreateContext. no context, no vibes π«Άoptionβ a constant that says which option we're adjusting. pick your fighter β¨valueβ the new value for that option, and it's a boolean bestie:0or1. that's the whole range, no in-between π
π DESCRIPTION π
So vpEnable is the function you call to enable or disable boolean options inside a rendering context. The rules are so simple they're basically a vibe check:
- if the
valueoption is0, the option is disabled π - otherwise, it is enabled π
And here's the full roster of options available, no gatekeeping, periodt:
VP_LIGHT0,VP_LIGHT1,VP_LIGHT2,VP_LIGHT3,VP_LIGHT4,VP_LIGHT5β enable the corresponding light source (peepvpSetLight(3)for the deets β¨). Default:VP_LIGHT0is enabled, and all the others are disabled. only the first one got the invite πVP_LIGHT_BOTH_SIDESβ enable two-sided lighting (again,vpSetLight(3)is your girl). Default: disabledVP_REVERSE_SURFACE_SIDESβ reverses the definition of interior and exterior surfaces (checkvpSetMaterial(3)). Default: disabledVP_DEPTH_CUEβ enable depth cueing (seevpSetDepthCueing(3)). Default: disabledVP_VIEW_X_AXIS,VP_VIEW_Y_AXIS,VP_VIEW_Z_AXISβ enable computing a preclassified volume for the corresponding major viewing axis (say hi tovpClassifyVolume(3)for me π). Default: enabled β yes queen, these three come pre-slaying πVP_SHADOWβ enable rendering shadows (seevpSetShadowLookupShader(3)). Default: disabledVP_CLAMP_SHADE_TABLEβ enable clamping the color components in a shade table to the range0.0-255.0. this option affectsvpShadeTable(). Default: enabled β¨
π ERRORS π
The normal return value is VP_OK β that's the "we ate and left no crumbs" outcome π«Ά
The following error return value is possible:
VPERROR_BAD_VALUEβ theoptionargument is invalid. yeahβ¦ you gave her something she doesn't recognise and she's not being subtle about it π
π SEE ALSO π
VolPack(3), vpCreateContext(3)
ngl bestie, if you're flipping options and something feels off, double check thatoptionconstant first.VPERROR_BAD_VALUEis literally the only dramatic thing about this function π
and that's the page fr fr π stay boolean, stay blessed π this has been vpEnable(3) from the VolPack library β mwah, catch you in the next manpage πβ¨π¦
π¦ where this page comes from
- debian bookworm: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- debian trixie: libvolpack1-dev 1.0b3-10 Β· BSD-3-Clause
- ubuntu jammy: libvolpack1-dev 1.0b3-9 Β· BSD-3-Clause
- ubuntu noble: libvolpack1-dev 1.0b3-9.1 Β· BSD-3-Clause
- ubuntu questing: libvolpack1-dev 1.0b3-11
- ubuntu resolute: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- ubuntu stonking: libvolpack1-dev 1.0b3-11build1 Β· BSD-3-Clause
- Copyright (c) 1994 The Board of Trustees of The Leland Stanford
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms