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

FreeBSD Manual Pages

  
 
  

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

NAME
       EZ_Fogfv	- set fog parameters

SYNOPSIS
       #include	<EZ.h>

       void EZ_Fogfv(int attr, float *pvalues)

ARGUMENTS
       attr  Specifies	which  attribute  is  being  updated.	Must be	one of
       EZ_FOG_MODE, EZ_FOG_DENSITY, EZ_FOG_COLOR, EZ_FOG_INDEX,	 EZ_FOG_START,
       EZ_FOG_END.

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

DESCRIPTION
       EZ_Fogfv	 sets  fog  parameters.	 Fog  is  enabled/disabled  by	EZ_En-
       able/EZ_Disable with argument EZ_FOG.

       If attr is EZ_FOG_MODE, pvalues should be an array of a single floating
       point number, which must	be either EZ_LINEAR or EZ_EXP or  EZ_EXP2.  It
       selects one of the three	fog models.

       If  attr	 is  EZ_FOG_COLOR,  pvalues  should be an array	of 4 floats in
       [0.0, 1.0].

       If attr is EZ_FOG_DENSITY, pvalues should  be  an  array	 of  a	single
       floating	point number, which specifies the fog density.

       If attr is EZ_FOG_START,	 pvalues should	be an array of a single	float-
       ing point number	in range [0.0, 1.0].  It sets  the  starting  position
       for  fog	 calculations,	with 0.0 represents the	far clipping plane and
       1.0 represents the near clipping	plane.

       If attr is EZ_FOG_END,  pvalues should be an array of a single floating
       point  number  in range [0.0, 1.0]. It sets the ending position for fog
       calculations, with 0.0 represents the far clipping plane	and 1.0	repre-
       sents the near clipping plane.

SEE ALSO
       EZ_Color3f(3), EZ_Normal3f(3), EZ_Vertex3f(3), EZ_Lightf(3), EZ_Materi-
       alf(3)

EZWGL								   EZ_Fogfv(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_Fogfv&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help