Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: GL_TRIANGLE_STRIP and glEdgeFlag()

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Calgary, AB, Canada
    Posts
    5

    GL_TRIANGLE_STRIP and glEdgeFlag()

    Hello,

    I'm trying to get a GL_TRIANGLE_STRIP to be drawn like it were a GL_QUAD_STRIP when glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); is done. Here's an example:

    glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
    glBegin(GL_TRIANGLE_STRIP);
    glVertex3f( V0 );
    glVertex3f( V1 );
    glVertex3f( V1 );
    glVertex3f( V2 );
    glVertex3f( V4 );
    glVertex3f( V5 );
    glEnd();

    So what I want is the line connecting V1 and V2 as well as V3 and V4 not be be drawn cause they aren't "edges". Can this be done?

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Calgary, AB, Canada
    Posts
    5

    Re: GL_TRIANGLE_STRIP and glEdgeFlag()

    "...triangle fans and triangle strips do not support edge flags."

    Ok, is there another way to do this? I'm working on making a terrain map, and so I was going to use triangle strips to draw the elevation points. But in the wire frame mode I don't want things to be triangles, but rather quads. Since the vertices of a quad need to be on the same plane, I can't use quads. How can I go about this ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •