PDA

View Full Version : real time 2d plot



Athos
09-15-2008, 09:13 AM
Hi all,
I need to plot a set of points obtained in real time, i.e. just a simple xy graph. How can I obtain this result? Does exist any library which do it for me?

I know about glBegin(GL_POINTS);/glVertex2f(ax, ay);/etc../glEnd();
Does exist something more sophisticated?

Glex1
09-21-2008, 03:21 AM
There are Display Lists, Vertex Arrays, VBOs.
If a curve can be approximated with a polynom you also can use glMap1f. Maybe there are even more techniques :)