getsm(3G)

getsm - returns the current shading model

As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.

NAME
     getsm - returns the current shading model

FORTRAN 77 SPECIFICATION
     integer*4 function getsm()

PARAMETERS
     none

FUNCTION RETURN VALUE
     The returned value of this function indicates which shading model is now
     active.  There are two possible return values:

     FLAT      the system renders lines and filled polygons in a constant
               color.

     GOURAU    the system renders lines and filled polygons with Gouraud
               shading.

DESCRIPTION
     getsm returns the shading model that the system uses to render lines and
     filled polygons.

SEE ALSO
     shadem

NOTE
     This routine is available only in immediate mode.