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


O_o by godecho
1
 
void DrawSquare(const unsigned int &radius);
{
     glBegin(GL_QUADS);
           glVertex2f(-radius/2, -radius/2);
           glVertex2f( radius/2, -radius/2);
           glVertex2f( radius/2,  radius/2);
           glVertex2f(-radius/2,  radius/2);
     glEnd();
}