From what I read on Kronos, to get data back from vertex buffer one would use glGetBufferSubData().
However this function is unavailable in LWJGL (or maybe I'm doing something wrong?)
I need to very rarely retrieve vertex data of a mesh back into the CPU-space program and update it.
- It happens super-rarely, so performance is not a concern
- The mesh is procedurally generated, so there's no file stored anywhere that I can access
- I could store it in a separate array all the time, but this feels like a waste of memory for a task that happens once an hour (and realistically probably would never happen)
The idea is that I need to update the coordinates of that mesh in case the control object gets too far away from coordinate origin to preserve precision.