Guest User

Untitled

a guest
Jun 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. glBegin(GL_LINE_STRIP);
  2.  
  3. z = -50.0f;
  4. for(angle = 0.0f; angle <= (2.0f*3.1415f)*3.0f; angle += 0.1f)
  5. {
  6. x = 50.0f*sin(angle);
  7. y = 50.0f*cos(angle);
  8.  
  9. // Specify the point and move the Z value up a little
  10. glVertex3f(x, y, z);
  11. z += 0.5f;
  12. }
  13.  
  14. // Done drawing points
  15. glEnd();
Add Comment
Please, Sign In to add comment