Growing line

BlitzMax Forums/OpenGL Module/Growing line

eindbaas(Posted 2006) [#1]
What would be a good way to make myself a growing line or flat surface? For example: I'd like to have 2 points with an equal distance from eachother that moves (only in memory, not onscreen) through space. At every frame, i'd like to add the current positions of that 'system' as vertices to a quad_strip, producing a sort of ribbon.

How would i set this up? I just read in my fresh copy of the red book about vertex-arrays, which seemed like a good thing to keep adding these new vertices to, but i didn't see any way of expanding it (seems like i have to declare the size from the beginning).

Any hints on this?