This defines a new light source. The available types are device dependent. If no light source of the desired type is available the return code is zero. The different types are/* types */ G_LIGHT_AMBIENT G_LIGHT_DIRECT G_LIGHT_POINT G_LIGHT_SPOT
Not all types are supplied by all machines. Since no more attributes are available for the light sources they are switched off.
/* modes */ G_MODE_GET G_MODE_SET typedef struct lightsource_dev { int type; /* G_LIGHT_AMBIENT | DIRECT | POINT | SPOT */ int on_off; /* lightsource switched ON or OFF */ double color[3]; /* rgb light color (incl. intensity) */ double position[3]; /* POINT | SPOT light source position */ double direction[3]; /* DIRECT | SPOT light direction */ double open_angle; /* SPOT open angle */ } LIGHTSOURCE_DEV;
Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.