Returns the shading model the system uses to draw filled polygons.
Int32 getsm( )
The getsm subroutine returns the shading model that the system uses to draw filled polygons. The returned value of this function indicates which shading model is now active.
Note: This subroutine cannot be used to add to a display list.
There are two possible return values:
|FLAT||FLAT||The system draws a filled polygon with a constant color across the entire surface of the polygon.|
|GOURAUD||GOURAU||The system draws a filled polygon with a color that varies as a linear interpolation of the colors at the polygon's vertices.|
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/usr/include/gl/gl.h||Contains C language constant and variable type definitions for GL.|
|/usr/include/gl/fgl.h||Contains FORTRAN constant and variable type definitions for GL.|
Selecting the shading model used to draw polygons with the shademodel subroutine.
AIX Graphics Library Overview, Drawing with Begin-End Style Subroutines, Drawing with Move-Draw Style Subroutines, Setting Drawing Attributes, Understanding the Hardware Used by GL, and Drawing Rectangles, Circles, Arcs, and Polygons.