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: Line problems

  1. #1
    Guest

    Line problems

    If I draw a 2d shape using lines is there a command that can be used to fill in the area enclosed by the lines?

    Also how do I change the thickness of my lines?

    Thanks
    Simbad

  2. #2
    Junior Member Regular Contributor
    Join Date
    May 2003
    Location
    Germany
    Posts
    232

    Re: Line problems

    Since OpenGL is a 3D-API there's no concept of filling a 2D-Area.But if you use GL_POLYGON instead of GL_LINES to draw your shape,then it'll be filled.
    And for the linewidth : glLineWidth should do the job. (Note that different GL-Implementations offer you different max. linewidths)

Posting Permissions

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