Jump to content
  • Advertisement
Sign in to follow this  

Antialiasing AND filled polygon

This topic is 4924 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  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!