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

NAME

6       vpGetLight - get lighting properties
7

SYNOPSIS

9       #include <volpack.h>
10
11       vpResult
12       vpGetLight(vpc, light_num, property, n0_ptr, n1_ptr, n2_ptr)
13           vpContext *vpc;
14           int light_num;
15           int property;
16           double *n0_ptr, *n1_ptr, *n2_ptr;
17

ARGUMENTS

19       vpc    VolPack context from vpCreateContext.
20
21       light_num
22              A  constant  specifying  a  particular  light source (VP_LIGHT0,
23              VP_LIGHT1, ..., VP_LIGHT5).
24
25       property
26              A  constant  specifying  one  lighting  property  (VP_COLOR   or
27              VP_DIRECTION).
28
29       n0_ptr, n1_ptr, n2_ptr
30              Locations  for  storing  the  result: components of an RGB color
31              (for VP_COLOR) or a direction vector (for VP_DIRECTION).
32

DESCRIPTION

34       vpGetLight is used to get the properties of a light source.  The  argu‐
35       ments  are  exactly analogous to vpSetLight except that the final three
36       arguments are pointers to locations for storing  the  lighting  proper‐
37       ties.
38

ERRORS

40       The  normal  return  value is VP_OK.  The following error return values
41       are possible:
42
43       VPERROR_LIMIT_EXCEEDED
44              The light number is invalid or exceeds an implementation limit.
45
46       VPERROR_BAD_OPTION
47              The property argument is invalid.
48

SEE ALSO

50       VolPack(3), vpCreateContext(3), vpSetLight(3)
51
52
53
54VolPack                                                          vpGetLight(3)
Impressum