PDA

View Full Version : xy plots



Jefft
12-14-2005, 06:00 AM
Given a set of (x,y) coordinates, what is the simplest way to generate an XY plot of the data using openGL/glut? Thanks.

mikael_aronsson
12-15-2005, 12:54 AM
There is no "simplest" way you have to do it all youself....



glBegin( GL_POINTS);
glVertex2?( first a and y coordinate);
glVertex2?( second point);
... and so on ...
glEnd();