OpenGL line thickness -


i have drawn helix gl_line_strip. i'm wondering if possible make line thicker somehow. google searches made me realize 2 choices. can make triangles make quad... or somehow use gllinewitdh? want simplest way it, supports next im going do. color specific line segments.

using opengl es 2.0

gllinewidth() easier if meets needs. there's 1 big caveat in es 2.0, though: maximum width supported specific device can low 1.0. means devices can es 2.0 compliant without supporting wide lines @ all.

you can range of supported line widths with:

glfloat linewidthrange[2]; glgetfloatv(gl_aliased_line_width_range, linewidthrange); 

linewidthrange[1] maximum supported line width. based on table 6.18 of spec, minimum allowed value limit 1.

based on this, drawing geometry (triangles) give actual width lines approach guaranteed work across devices.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -