| GPLSR (wsid, index, type, color, data) |
Purpose
Use GPLSR to store the specified light source information into the specified entry of the workstation's light source table.
Each entry of the light source table is initially set to a light source type of 1=AMBIENT and light source direct color values of 1.0, 1.0, and 1.0.
Parameters
indexed format direct format
------------- -------------
0 | 1| fullword integer 0 | 2| fullword integer
|-----------| |-----------|
4 |color index| fullword integer 4 |component 1| short floating-point number
|-----------| |-----------|
8 | ignored| fullword integer 8 |component 2| short floating-point number
|-----------| |-----------|
12 | ignored| fullword integer 12 |component 3| short floating-point number
------------- -------------
Attenuation coefficients - 2 short floating-point numbers. The first floating-point number must be >0. The second floating-point number must be >=0.
Light source direction - 3 short floating-point numbers (WC)
Concentration exponent - short floating-point number (>=0)
Attenuation coefficients - 2 short floating-point numbers. The first floating-point number must be >0. The second floating-point number must be >=0.
Spread angle - short floating-point number. The spread angle must be in radians (0.0<=angle<=[default])
Error Codes
Related Subroutines
RCP code
201329422 (X'0C000B0E')