| 1 |
< |
.\" SCCSid "$SunId$ LBL" |
| 1 |
> |
.\" RCSid "$Id$" |
| 2 |
|
.nr PS 11 |
| 3 |
|
.ps 11 |
| 4 |
|
.nr VS 12 |
| 3927 |
|
|
| 3928 |
|
typedef struct { |
| 3929 |
|
int clock; /* incremented each change -- resettable */ |
| 3930 |
+ |
char *client_data; /* pointer to private client data */ |
| 3931 |
|
FVECT p, n; /* point and normal */ |
| 3932 |
|
} C_VERTEX; /* vertex context */ |
| 3933 |
|
.DE |
| 3949 |
|
(See the |
| 3950 |
|
.I xf_handler |
| 3951 |
|
page.)\0 |
| 3952 |
+ |
The |
| 3953 |
+ |
.I client_data |
| 3954 |
+ |
pointer may be used to index private application data for vertex |
| 3955 |
+ |
linking, etc. |
| 3956 |
+ |
This pointer is initialized to NULL when the context is created, |
| 3957 |
+ |
and otherwise ignored by the parser library. |
| 3958 |
|
.LP |
| 3959 |
< |
It is possible but not recommended to alter the contents of the |
| 3959 |
> |
It is possible but not recommended to alter the shared contents of the |
| 3960 |
|
vertex structure returned by |
| 3961 |
|
.I c_getvert. |
| 3962 |
|
Normally it is read during the |
| 4077 |
|
|
| 4078 |
|
typedef struct { |
| 4079 |
|
int clock; /* incremented each change */ |
| 4080 |
+ |
char *client_data; /* pointer to private client data */ |
| 4081 |
|
short flags; /* what's been set */ |
| 4082 |
|
short ssamp[C_CNSS]; /* spectral samples, min wl to max */ |
| 4083 |
|
long ssum; /* straight sum of spectral values */ |
| 4093 |
|
This is a convenient way to keep track of whether or not a color has |
| 4094 |
|
changed since its last use. |
| 4095 |
|
The |
| 4096 |
+ |
.I client_data |
| 4097 |
+ |
pointer may be used to index private application data. |
| 4098 |
+ |
This pointer is initialized to NULL when the context is created, |
| 4099 |
+ |
and otherwise ignored by the parser library. |
| 4100 |
+ |
The |
| 4101 |
|
.I flags |
| 4102 |
|
member indicates which color representations have been assigned, |
| 4103 |
|
and is an inclusive OR of one or more of the following: |
| 4242 |
|
|
| 4243 |
|
typedef struct { |
| 4244 |
|
int clock; /* incremented each change -- resettable */ |
| 4245 |
+ |
char *client_data; /* pointer to private client data */ |
| 4246 |
|
int sided; /* 1 if surface is 1-sided, 0 for 2-sided */ |
| 4247 |
|
float nr, ni; /* index of refraction, real and imaginary */ |
| 4248 |
|
float rd; /* diffuse reflectance */ |
| 4266 |
|
desired. |
| 4267 |
|
This is a convenient way to keep track of whether or not a material has |
| 4268 |
|
changed since its last use. |
| 4269 |
+ |
The |
| 4270 |
+ |
.I client_data |
| 4271 |
+ |
pointer may be used to index private application data. |
| 4272 |
+ |
This pointer is initialized to NULL when the context is created, |
| 4273 |
+ |
and otherwise ignored by the parser library. |
| 4274 |
|
.LP |
| 4275 |
|
All reflectance and transmittance values correspond to normal |
| 4276 |
|
incidence, and may vary as a function of angle depending on the |