Anti-aliasing with GLUT

Hi,

I’m trying to add the anti-aliasing functionality to my app and I try it using:


    glEnable( GL_LINE_SMOOTH );
    glEnable( GL_POLYGON_SMOOTH );
    glHint( GL_LINE_SMOOTH_HINT, GL_NICEST );
    glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST );

However it doesn’t work and I read somewhere that’s because those functions are deprecated and recommend to use GLUT libraries. Is it true? How the GLUT libraries can be used for anti-aliasing?

Thanks

Did you try multisampling? Similar effect, less headaches.


glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_MULTISAMPLE);
glEnable(GL_MULTISAMPLE);