Jump to content
  • Advertisement
Sign in to follow this  

drawing polygon as a layer

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

hi. I am tring to draw a polygon as layer that this layer shouldnt effect the other drawings. I can draw polygon with 4 lines for empty polygon on mouse left button pressed event. the code is below. glColor3f(1.0f, 1.0f, 0.3f); glEnable(GL_LINES); glBegin(GL_LINES); glVertex2f(mouseDownX, mouseDownY); glVertex2f(mouseDownX, mouseUpY); glEnd(); glBegin(GL_LINES); glVertex2f(mouseDownX, mouseUpY); glVertex2f(mouseUpX, mouseUpY); glEnd(); glBegin(GL_LINES); glVertex2f(mouseDownX, mouseDownY); glVertex2f(mouseUpX, mouseDownY); glEnd(); glBegin(GL_LINES); glVertex2f(mouseUpX, mouseDownY); glVertex2f(mouseUpX, mouseUpY); glEnd(); glDisable(GL_LINES); so how can i do draw a polygon as a layer? thanks from now... Best regards... Aykut

Share this post


Link to post
Share on other sites
Advertisement
I'm afraid you are unlikely to get an answer because your question is unclear. I appreciate that English is probably not your first language, so it can be difficult to communicate effectively what you want to achieve.

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.

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

Sign me up!