Facebook
From Commodious Sloth, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 58
  1. //punkt
  2.  glColor3f(1,0,0);//czerwony kolor
  3.  glBegin(GL_POINTS);//rysujemy punkt
  4.  glVertex3f(0.0, 0.0, 0.0);
  5.  glEnd();
  6. //linia
  7.  glColor3f(0,1,0);//zielony kolor
  8.  glBegin(GL_LINES); //linia
  9.  glVertex3f(0.0, 0.0, 0.0);
  10.  glVertex3f(110.0, 110.5, 0.0);
  11.  glEnd();