LVectorBase::GetUseLights

#include "ltwrappr.h"

virtual L_INT LVectorBase::GetUseLights(L_VOID)

Gets the use lights status for the specified vector handle.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

If the use of lights is disabled, ambient light will have no effect on how the image is drawn.

This function has not effect in GDI engine.

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorBase::SetUseLights, LVectorBase::SetAmbientColor, LVectorBase::GetAmbientColor

Topics:

Viewing a Vector Images

 

Vector Images: Viewing a Vector Image

Example

void Example29(LVectorBase &Vector)
{
   switch (Vector.GetUseLights())
   {
      case 1:
         Vector.SetUseLights(FALSE);
      case 0:
         Vector.SetUseLights(TRUE);
      default:
         ;//error
   }
}