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: Drawing Outline complex Polygon

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2002
    Posts
    26

    Drawing Outline complex Polygon

    Hi, I am drawing complex polygons with the functions:

    glColor3ub(...)
    glPolygonMode(GL_FRONT, GL_FILL);
    ...

    gluTessBeginPolygon(...)
    ...
    gluTessEndPolygon(...)

    it works fine, but I want draw the border of the polygon in a different color from the area color.

    Is it possible ????

    If I draw the contour of the polygon with ...
    glBegin(GL_LINE_STRIP)
    ...
    glEnd()
    the quality of the border is poor. :-P

    Can you help?
    thank you very much

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    547

    Re: Drawing Outline complex Polygon

    polygon offset

Posting Permissions

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