Jump to content
  • Advertisement
Sign in to follow this  
Lilive

Antialiasing AND filled polygon

This topic is 4828 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!