The following code creates a rectangle on Windows XP, but in Windows Vista a diagonal edge is shown. It looks like the edge flag does not work for display lists on Vista.
OpenGL is full blown with those features i haven’t even heard of, and never will, good thing they are deprecated.
a piece of advice is to check how Direct3D does it because Direct3D functionality has only those things supported that are actually needed. reassembling this from some Direct3D code is fairly easy coz OpenGL has all the features anyways.
It is an ATI Radeon Xpress 1250 with driver version 8.383.1.0. Since it is suitable for an OpenGL based CAD system this should not be the limitation. I’ve tested it also on other Vista systems with the same result, but it never shows up on XP.
BTW I really want to draw triangle wireframe as you can see on the sample code in the first post.
Even if you get these edge flags to work, I promise it will perform awfully slow.
It’s quite easy to build the wireframe mesh from a given triangle mesh. Just add the edges you want to hilight as GL_LINES to an array, put it in a VBO (or add it to the display list) and enjoy.
Well if these guys would read documenation or books they would know about it. I’ve seen this feature in several books in the basic chapters. You could not really call that “obscure”.
You’re absolutely right, Achim. hangs head in shame
'Twas just a friendly gibe at the API we all know and love, reflecting an ongoing and well documented sentiment regarding the need for a simplified API - nothing whatever to do with the relative usefulness of edge flags.