GINO Graphics Suite - GINO v9.0  

gEnqLightAttribs

Syntax

[C/C++:]
void gEnqLightAttribs(int light, GLITATT *att);
[F90:]
subroutine gEnqLightAttribs(light, att)

integer, intent(in) :: light
type (GLITATT), intent(out) :: att

Arguments

light
Light source number (1-8)

att.state
Light state

= GON, Light is switched on
= GOFF, Light is switched off

att.type
Light type

= GAMBIENT
= GDIRECTIONAL
= GPOINTLIGHT
= GSPOTLIGHT

att.col
Light colour

att.dir
Direction vector

att.pos
Position

att.att1
Constant attenuation factor

att.att2
Linear attenuation factor

att.conc
Spot light concentration

att.spang
Spot light spread angle in degrees

att.spec
Specular colour component

Description

The routine gEnqLightAttribs() returns the current attributes of the specified light source. The information is returned in a structure of type GLITATT, which contains values set by gDefineLightSource() and gSetLightSwitch().

See Also

gEnqLightAttribs Usage
gDefineLightSource
gSetLightSwitch