The following table lists IRIS GL antialiasing functions and their equivalent OpenGL functions.
IRIS GL Function | OpenGL Function | Meaning |
---|---|---|
pntsmooth | glEnable(GL_POINT_SMOOTH) | Enable antialiasing of points. |
linesmooth | glEnable(GL_LINE_SMOOTH) | Enable antialiasing of lines. |
polysmooth | glEnable(GL_POLYGON_SMOOTH) | Enable 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 control—use 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:
IRIS GL also permits end-correction by calling:
linesmooth(SML_ON + SML_END_CORRECT);
OpenGL has no equivalent for this function.