changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- get_light - Procedure}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)

get_light - Function

Description

Returns information about a light source.

Syntax

  status:=get_light(light, on, intensity, mode);

  int   light;
  int   on;
  float intensity;
  int   mode;
  int   status;

Principal parameters

light - The lightsource number. A number from 0 to 7.
on - Returns 1 if the lightsource is turned on, or 0 if turned off.
intensity - Returns the intensity of the lightsource, 0 - 100%.
mode - Returns the transformation mode. 0 = Static, 1 = Follow_model.

Return value

Returns 0 if the lightsource is defined and -1 if not defined.

Comments

See also:

cre_light()

include(../../include/svnversion.inc) include(../../include/footer.inc)