GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


polygon by Rickie
1
 
    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(); 
   }