New Paste :: Recent Pastes:: Add Line Numbers
polygon by Rickie
for (int i =0; i<12; i++) { glBegin(GL_POLYGON); glColor3f(1,1,1); glVertex2f(i*width,0); glVertex2f(i*width,height[i]); glVertex2f((i*width)+width-1,height[i]); glVertex2f((i*width)+width-1,0); glEnd(); }