I’m working on a real-time chart using opengl and c++.
This is kind of seismogram or stock chart. It works on real-time and updates every single second.
Here is the problem. I can draw chart once but I cannot update changed data later on. I think buffers of opengl take data for display before complete to calculate and draw it at once.
I’m trying to do with very simple program, but I can’t.
You weren’t very specific, so you can’t expect and answer stragiht away. I can only suggest to check a few fings:
Do you enforce reapint in your window properly?
Are you using depth test? If yes - do you clear z buffer?
Do you use double buffering? If yes - do you swap buffers properly?
You can also compare your code with NeHe tutorials.