Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
EZ_Lightf(3)			EZWGL Functions			  EZ_Lightf(3)

NAME
       EZ_Lightf, EZ_Lightfv - set light source	parameters

SYNOPSIS
       #include	<EZ.h>

       void EZ_Lightf(int num, int attr, float values)

       void EZ_Lightfv(int num,	int attr, float	*pvalues)

ARGUMENTS
       num Specifies a light source. Must be an	integer	between	0 and 7.

       attr  Specifies	which  attribute  is  being  updated.	Must be	one of
       EZ_EMISSION, EZ_AMBIENT,	 EZ_DIFFUSE,  EZ_SPECULAR,  EZ_SPOT_DIRECTION,
       EZ_POSITION, EZ_SPOT_EXPONENT, EZ_SPOT_CUTOFF, EZ_CONSTANT_ATTENUATION,
       EZ_LINEAR_ATTENUATION, EZ_QUADRATIC_ATTENUATION.

       values Specifies	the values for the specified attr.

       pvalues Specifies the values for	the specified  attr  in	 an  array  of
       floats.

DESCRIPTION
       EZ_Lightf/EZ_Lightfv sets values	for light properties.

       If  attr	 is  one  of EZ_EMISSION, EZ_AMBIENT, EZ_DIFFUSE, EZ_SPECULAR,
       EZ_SPOT_DIRECTION or EZ_POSITION, values	should consist of 4 floats and
       pvalues	should	be  an	array of 4 floats, with	each in	interval [0.0,
       1.0].

       If attr is one of EZ_SPOT_EXPONENT, EZ_SPOT_CUTOFF, EZ_CONSTANT_ATTENU-
       ATION,  EZ_LINEAR_ATTENUATION,  EZ_QUADRATIC_ATTENUATION, values	should
       be a single float point number.

SEE ALSO
       EZ_Color3f(3), EZ_Normal3f(3), EZ_Vertex3f(3), EZ_Materialf(3),	EZ_De-
       fineLightSrc(3)

EZWGL								  EZ_Lightf(3)

NAME | SYNOPSIS | ARGUMENTS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=EZ_Lightf&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help