I want to draw a line in OpenGL which will very often receive new points.
I want to achieve an object that draws a line behind itself:
So do I have to make an array and append all new points to it (BufferData
set to GL_DYNAMIC_DRAW
). And then redraw the line with glDrawArrays
. Tesselation + width of stroke would be inside the vertexshader
?
Or is there a better way?