Skip to content

Instantly share code, notes, and snippets.

@PoetaKodu
Created April 8, 2017 20:32
Show Gist options
  • Save PoetaKodu/54ef2d067143fb01607e952e9effc26c to your computer and use it in GitHub Desktop.
Save PoetaKodu/54ef2d067143fb01607e952e9effc26c to your computer and use it in GitHub Desktop.
#include "Main.hpp"
namespace SFMLShapes
{
/* Funkcja, ktora tworzy wycinek kola o promieniu radius, kacie 2*angle (wartosc angle w lewo i wartosc angle w prawo).
vertexCount to ilosc punktow, z ktorych bedzie skladal sie ksztalt. Minimalnie sa to 3 punkty (bardzo slaba dokladnosc, trojkat)
*/
sf::ConvexShape GeneratePie(const float &radius, const float &angle, unsigned int vertexCount = 20);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment