mirror of
https://github.com/noerw/concentric-clock
synced 2025-07-06 01:00:23 +02:00
19 lines
No EOL
650 B
C++
19 lines
No EOL
650 B
C++
#pragma once
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
namespace CClock {
|
|
const double pi = 3.141592654;
|
|
|
|
class CircularSector : public sf::Drawable, public sf::Transformable {
|
|
private:
|
|
sf::VertexArray vertices_;
|
|
|
|
public:
|
|
explicit CircularSector();
|
|
explicit CircularSector(const double radius, const double thickness, const double angleInRad,
|
|
const sf::Color color = sf::Color::White, const unsigned int segmentCount = 40);
|
|
|
|
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
|
|
};
|
|
|
|
}; |