glBegin() for (x=0; x< points; x++) { y = f(x) glVertex*(x,y) } glEnd()
glBegin() for(i=0;i<points; i++) { glVertex(vector[i].x,vector[i].y) } glEnd()
setup() data = generateData() SendDataToOpenGL(data) display() RenderStoredData();