Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Mine::Draw(double xx, double xy)
- {
- img->CopyTo(screen, xx, xy);
- int radius = 40;
- glm::vec2 pivot(xx + img->GetWidth() / 2, xy + img->GetHeight() / 2);
- for (double i = 0; i < PI*2; i += 0.1)
- {
- double a = radius * std::cos((i ));
- double b = radius * std::sin((i ));
- screen->Plot(pivot.x + a, pivot.y + b, 0xffffff);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement