Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void Mine::Draw(double xx, double xy)
  2. {
  3. img->CopyTo(screen, xx, xy);
  4.  
  5. int radius = 40;
  6.  
  7. glm::vec2 pivot(xx + img->GetWidth() / 2, xy + img->GetHeight() / 2);
  8.  
  9.  
  10. for (double i = 0; i < PI*2; i += 0.1)
  11. {
  12. double a = radius * std::cos((i ));
  13. double b = radius * std::sin((i ));
  14.  
  15. screen->Plot(pivot.x + a, pivot.y + b, 0xffffff);
  16. }
  17.  
  18.  
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement