IG_vect_light_get_attenuation
This function returns the constant, linear, and quadratic attenuation factors of the light source.
Declaration:
|
Copy Code
|
AT_ERRCOUNT ACCUAPI IG_vect_light_get_attenuation(
HIG_VECT_LIGHTSOURCE hLightSource,
float* lpConstant,
float* lpLinear,
float* lpQuadratic
);
|
Arguments:
Name |
Type |
Description |
hLightSource |
HIG_VECT_LIGHTSOURCE |
Light source handle. |
lpConstant |
float* |
Buffer for the constant attenuation factor. |
lpLinear |
float* |
Buffer for the linear attenuation factor. |
lpQuadratic |
float* |
Buffer for the quadratic attenuation factor. |
Return Value:
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
None