PDA

View Full Version : Anti-aliasing with GLUT



Cucus
07-06-2011, 12:14 PM
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

coffeeaddict
07-13-2011, 02:55 PM
Did you try multisampling? Similar effect, less headaches.



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