Sign in to follow this  

drawing polygon as a layer

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

This topic is 3312 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this