[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

getsm Subroutine

Purpose

Returns the shading model the system uses to draw filled polygons.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 getsm( )

FORTRAN Syntax

INTEGER*4 GETSM

Description

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.

Return Values

There are two possible return values:

C FORTRAN Description
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.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/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.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]