Edit

Share via


Using Antialiasing Functions

The following table lists IRIS GL antialiasing functions and their equivalent OpenGL functions.

IRIS GL function OpenGL function Meaning
pntsmooth glEnable ( GL_POINT_SMOOTH ) Enables antialiasing of points.
linesmooth glEnable( GL_LINE_SMOOTH ) Enables antialiasing of lines.
polysmooth glEnable ( GL_POLYGON_SMOOTH ) Enables antialiasing of polygons.

 

Use the equivalent glDisable calls to turn off antialiasing.

In IRIS GL, you can control the quality of the antialiasing by calling:

linesmooth(SML_ON + SML_SMOOTHER);

OpenGL provides similar controluse glHint:

glHint(GL_POINT_SMOOTH_HINT, hintMode); 
glHint(GL_LINE_SMOOTH_HINT, hintMode); 
glHint(GL_POLYGON_SMOOTH_HINT, hintMode);

where hintMode is one of the following:

  • GL_NICEST (Use the highest quality smoothing.)
  • GL_FASTEST (Use the most efficient smoothing.)
  • GL_DONT_CARE

IRIS GL also permits end-correction by calling:

linesmooth(SML_ON +  SML_END_CORRECT);

OpenGL has no equivalent for this function.