1vpEnable(3)                Library Functions Manual                vpEnable(3)
2
3
4

NAME

6       vpEnable - enable or disable options
7

SYNOPSIS

9       #include <volpack.h>
10
11       vpResult
12       vpEnable(vpc, option, value)
13           vpContext *vpc;
14           int option;
15           int value;
16

ARGUMENTS

18       vpc    VolPack context from vpCreateContext.
19
20       option Constant that specifies the option to be adjusted.
21
22       value  New value for the option (boolean: 0 or 1).
23

DESCRIPTION

25       vpEnable  is  used  to enable or disable boolean options in a rendering
26       context.  If the value option is 0 then the option is disabled;  other‐
27       wise  it  is  enabled.   The  following  list  summarizes all available
28       options:
29
30       VP_LIGHT0
31       VP_LIGHT1
32       VP_LIGHT2
33       VP_LIGHT3
34       VP_LIGHT4
35       VP_LIGHT5
36              Enable  the  corresponding  light  source  (see  vpSetLight(3)).
37              Default: VP_LIGHT0 is enabled, and all others are disabled.
38
39       VP_LIGHT_BOTH_SIDES
40              Enable  two-sided  lighting  (see vpSetLight(3)).  Default: dis‐
41              abled
42
43       VP_REVERSE_SURFACE_SIDES
44              Reverse the definition of interior and  exterior  surfaces  (see
45              vpSetMaterial(3)).  Default: disabled
46
47       VP_DEPTH_CUE
48              Enable  depth  cueing  (see vpSetDepthCueing(3)).  Default: dis‐
49              abled
50
51       VP_VIEW_X_AXIS
52       VP_VIEW_Y_AXIS
53       VP_VIEW_Z_AXIS
54              Enable computing a preclassified volume  for  the  corresponding
55              major viewing axis (see vpClassifyVolume(3)).  Default: enabled
56
57       VP_SHADOW
58              Enable   rendering   shadows  (see  vpSetShadowLookupShader(3)).
59              Default: disabled
60
61       VP_CLAMP_SHADE_TABLE
62              Enable clamping the color components in a  shade  table  to  the
63              range  0.0-255.0.  This option affects vpShadeTable().  Default:
64              enabled
65

ERRORS

67       The normal return value is VP_OK.  The following error return value  is
68       possible:
69
70       VPERROR_BAD_VALUE
71              The option argument is invalid.
72

SEE ALSO

74       VolPack(3), vpCreateContext(3)
75
76
77
78VolPack                                                            vpEnable(3)
Impressum