#include #include void display(void) { glClear(GL_COLOR_BUFFER_BIT); //flush gl typedef GLint vertex3[2]; //2 attributes int rows= 3; int cols= 5; //data storage matrix vertex3 vData[rows][cols]= { {{0,80}, {50,50}, {100,100}, {150,75}, {200,120}}, {{0,50}, {50,100}, {100,80}, {150,150}, {200,60}}, {{0,20}, {50,70}, {100,120}, {150,160}, {200,200}} }; //set flags glPushAttrib(GL_ENABLE_BIT); glEnable(GL_LINE_STIPPLE); //draw each line for(int r=0; r