Drawing connected lines with OpenGL

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-05-02T19:25:29Z Indexed on 2010/05/02 19:27 UTC
Read the original article Hit count: 199

Filed under:
|
|

I'm drawing convex polygons with OpenGL. I then do the same thing but use GL_LINE_LOOP. The problem I have is the lines are not always connected. How could I ensure that the lines are always connected?

In the photo below, Iv highlighted in green, the corners that are connected and in red, those that are not. I would like for them to be all like the green ones.

http://img249.imageshack.us/i/notconnected.png/

Thanks

© Stack Overflow or respective owner

Related posts about opengl

Related posts about c++