Advertisement
rakoczyn

[OpenGL] Elipsa

Apr 19th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. glBegin(GL_TRIANGLE_FAN);
  2.  
  3. float x, y,z;
  4. for(float i = 0; i < 360; i+=0.01)
  5. {
  6.     x = 1.2*sin(i);
  7.     y = cos(i);
  8.     z = 0;
  9.     glVertex3f(x,y,z);
  10. }
  11.      
  12. glEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement