Functions | |
void | Show_Local_Light (HC_KEY key, float *x, float *y, float *z) |
void | DShow_Local_Light (HC_KEY key, float *x, float *y, float *z) |
void Show_Local_Light | ( | HC_KEY | key, | |
float * | x, | |||
float * | y, | |||
float * | z | |||
) |
Returns the position of a "local light", as referenced by a key.
key | - Unique numeric identifier pointing to a local light in the database. | |
x | - Location of the local light in object space. Returned to user. Passed by reference always. | |
y | - | |
z | - |
The key for the local light might come from Find_Contents() ( Begin_Contents_Search() ) or it might have been saved by your program when the local light was created (via KInsert_Local_Light() ).
If you want the ability to "drag" the light around with the mouse, you could insert a selectable marker in the same segment as the light source and apply modelling transformations to both objects. Note that "point" lights (local, spot, and distant lights) are not directly selectable.
void DShow_Local_Light | ( | HC_KEY | key, | |
float * | x, | |||
float * | y, | |||
float * | z | |||
) |
Similar to Show_Local_Light, but accepts and/or returns double-precision values. This command can only be used when the application source includes the HOOPS double-precision header, hcd.h.
key | - Unique numeric identifier pointing to a local light in the database. | |
x | - Location of the local light in object space. Returned to user. Passed by reference always. | |
y | - | |
z | - |