ImageGear for C and C++ on Windows v20.5 - Updated
IG_vect_view_get_max_lights
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > View Functions > IG_vect_view_get_max_lights

This function returns the maximum number of light sources that can be used for the view.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_view_get_max_lights(
   HIG_VECT_VIEW hView,
   long* lpMaxLights
);

Arguments:

Name Type Description
hView HIG_VECT_VIEW Handle to the view.
lpMaxLights long* Pointer to a variable which will receive the maximum number of light sources.

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:

Vector

Remarks:

Usually, the maximum number of light sources is 8. However, this value may be less depending on the OpenGL or Direct3D capabilities. ImageGear supports up to 8 light sources per View.

See IG_vect_view_lighting_enable for additional information.

Is this page helpful?
Yes No
Thanks for your feedback.