vpEnable(3)
π vpEnable(3) β Library Functions Manual β¨
okay bestie, welcome to the Library Functions Manual section for vpEnable, and honestly? she's a little toggle queen and you're gonna love her π
β¨ NAME β¨
vpEnable β turn options on or off, that's it, that's the whole job π
π¦ SYNOPSIS π¦
#include <volpack.h>
vpResult
vpEnable(vpc, option, value)
vpContext *vpc;
int option;
int value;
πΈ ARGUMENTS πΈ
vpcβ the VolPack context you got fromvpCreateContext. your main character, fr.optionβ a constant that says which option is getting adjusted. pick your fighter πvalueβ the new value for the option, and it's boolean so it's literally just0or1.
π DESCRIPTION π
so like, vpEnable is the girl who flips boolean options on and off inside a rendering context. if value is 0, the option gets disabled. otherwise (any other value, not just 1, iykyk) it gets enabled. periodt.
here's the whole squad of options, no cap, every single one:
VP_LIGHT0VP_LIGHT1VP_LIGHT2VP_LIGHT3VP_LIGHT4VP_LIGHT5
turns on the corresponding light source (peep vpSetLight(3)). Default: VP_LIGHT0 is enabled, and all the others are disabled. she's the favorite child, we don't make the rules π
VP_LIGHT_BOTH_SIDESβ enables two-sided lighting (again,vpSetLight(3)). Default: disabledVP_REVERSE_SURFACE_SIDESβ flips the definition of interior and exterior surfaces (seevpSetMaterial(3)). Default: disabledVP_DEPTH_CUEβ enables depth cueing (seevpSetDepthCueing(3)). Default: disabledVP_VIEW_X_AXISVP_VIEW_Y_AXISVP_VIEW_Z_AXIS
enables computing a preclassified volume for the corresponding major viewing axis (see vpClassifyVolume(3)). Default: enabled
VP_SHADOWβ enables rendering shadows (seevpSetShadowLookupShader(3)). Default: disabledVP_CLAMP_SHADE_TABLEβ enables 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 slay outcome π«Ά
but sometimes things go wrong, and the following error return value is possible:
VPERROR_BAD_VALUEβ theoptionargument is invalid. like girl, that's not a real option, who is she π
π SEE ALSO π
VolPack(3), vpCreateContext(3)
okay that's the whole page, you ate it, go enable some stuff bestie π
this was the VolPack release, dated vpEnable(3) in the footer, mwah π no notes, iconic, bye β¨π
π¦ where this page comes from
- fedora 43: volpack 1.0c7-35.fc43 Β· BSD-3-Clause
- fedora 43: volpack 1.0c7-35.fc43 Β· BSD-3-Clause
- fedora 44: volpack 1.0c7-36.fc44 Β· BSD-3-Clause
- fedora 44: volpack 1.0c7-36.fc44 Β· BSD-3-Clause
- Copyright (c) 1995-2008, Stanford University
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms