rosjava / android_core

Android libraries for rosjava
145 stars 166 forks source link

Changed GL_LINES to GL_LINE_STRIP inside drawLines method #307

Closed stringnotfound1 closed 5 years ago

stringnotfound1 commented 5 years ago

Related to this issue

GL_LINES only draws a line between every two vertices while GL_LINE_STRIP draws a line between every specified vertex. Link to documentation.

I've attached two pictures to show a comparison:

GL_LINES: lines

GL_LINE_STRIP: line_strip

While the GL_LINE_STRIP version still looks a little bit off at some parts, probably due to missing anti aliasing, it's definitly an improvement to the current version.