glLineWidth is not supported by openGL ES 2.0. Is there any alternative to achieve the same in 2.0?
Asked
Active
Viewed 1,430 times
0
-
possible duplicate: http://stackoverflow.com/questions/101718/drawing-a-variable-width-line-in-opengl-no-gllinewidth – fen Aug 26 '13 at 17:43
-
2`glLineWidth` *is* supported in ES 2.0. See section 3.4 of [the spec](http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.25.pdf). – rickster Sep 05 '13 at 23:39
-
@rickster I think that's for lines without multisampling only. If the lines are anti aliased they show up as width 1. – Bram Jun 30 '17 at 17:33
1 Answers
0
Render triangle strip or triangles instead. This will consume 2x more vertex memory, but should faster than lines on modern hw. If You can target ES3 You can consider using instanced vertex arrays to lower vertex mem usage.

sacygan
- 99
- 4