I am learning OpenGL 2.0 from wikibooks: https://en.wikibooks.org/wiki/OpenGL_Programming
I am animating a 2D plot. The x-coordinates of all the vertices are set once. I have the y-coordinates stored in a std::vector. Redrawing every few hundred frames.
Would it be possible to update only the y-coordinate information in the vertex shader? The number of y-coordinates (size of vector) is a variable.
Another option is passing both the x and y coordinates, but keeping them in separate structures.