OpenGL Smooth Polygon

I am trying to make this smooth polygon using OpenGL, but it does nothing. Can someone explain what I'm doing wrong?

glColor4ub(r, g, b, a); glEnable(GL_POLYGON_SMOOTH); glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST); glBegin(GL_QUADS); glVertex2i(x, y); glVertex2i(x1, y1); glVertex2i(x2, y2); glVertex2i(x3, y3); glEnd(); glDisable(GL_POLYGON_SMOOTH); glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE); 

Thanks in advance!

+4
source share
1 answer

This method for smooth rendering is deprecated. It would be better to use multisampling with the extension GL_ARB_multisample .

+7
source

All Articles