Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glDrawArrays vs glDrawElements in GL_LINE_LOOP mode

Threaded View

  1. #1
    Junior Member Newbie
    Join Date
    May 2013

    glDrawArrays vs glDrawElements in GL_LINE_LOOP mode

    I'm drawing a bunch of rectangles and other 2D shapes, in the past using glDrawArrays now with shared vertices using glDrawElements. When drawing a square with 4 vertices, count = 4 and mode = GL_LINE_LOOP the square is not closed, it acts as if GL_LINE_STRIP were used. The last vertex is not connect to the first, an additional index is needed to close it?
    Last edited by msundell; 05-10-2013 at 11:28 PM.

Posting Permissions

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