Contents / Previous / Next


Antialiasing

aliasing ist the jaggedness that appears when approximating an ideal line by a series of pixels that must lie on the pixel grid.

Aliasing is turned on with:

 glEnable( GL_POINT_SMOOTH );
 glEnable( GL_LINE_SMOOTH );

Use glHint() to provide a quality hint:

  void glHint(GLenum target, GLenum hint);

The target parameter indicates which behavior is to be controlled:
GL_POINT_SMOOTH_HINT, GL_LINE_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT

The hint parameter can be:
GL_FASTEST, GL_NICEST or GL_DONT_CARE.