Object ProLight

Function ProLightSourcesSet


Description
Sets the light information associated with the specified window in model space.
Replacement in Object TOOLKIT: wfcWWindow::SetLightInstructions
Synopsis
#include <ProSurface.h>
ProErrorProLightSourcesSet(
int window_id
/* (In)
The identifier of the Creo Parametric window. Use PRO_VALUE_UNUSED (or a value less than 0)for the current window.
*/
ProLightInfo* light_info
/* (In)
ProArray of structures of light properties. Since the number of user defined lights cannot exceed 5, this array must have no more than 5 elements.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSThe argument is invalid.
PRO_TK_CANT_MODIFYThis type of light is not allowed to be set. (PRO_TK_LIGHT_AMBIENT, PRO_TK_LIGHT_HDRI).
PRO_TK_UNSUPPORTEDlight_info has more than 5 elements.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Setting Light Sources