Sign in to follow this  

Antialiasing AND filled polygon

This topic is 4676 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Please help, it's a nightmare !!! I want to draw an antialiased and filled polygon. But when I draw, I always see internal triangle bounds. I shouldn't see them !!! What's happening ??? Any answer would be really helpful... Thnaks in advance. I do: glEnable (GL_BLEND); glEnable (GL_POLYGON_SMOOTH); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); glColor4f(1.0f, 0.0f, 0.0f, 1.0f); // my polygon is a simple rectangle here... glBegin(GL_POLYGON); glVertex2i(rc.left,rc.top); glVertex2i(rc.left,rc.bottom); glVertex2i(rc.right,rc.bottom); glVertex2i(rc.right,rc.top); glEnd();

Share this post


Link to post
Share on other sites
Sign in to follow this