1
0
Fork 0
mirror of https://github.com/noerw/concentric-clock synced 2025-07-11 08:30:23 +02:00
concentric-clock/src/MovingSectors.h
noerw ee7d52d6a3 introduce proper folder structure
files are organized in src/ res/ bin/ now, makefiles were adapted
2015-09-19 20:53:46 +02:00

26 lines
No EOL
862 B
C++

#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <vector>
#include "CircularSector.h"
namespace CClock {
class MovingSectors : public sf::Drawable, public sf::Transformable {
private:
std::vector<CircularSector> sectors_;
std::vector<double> radii_;
std::vector<double> rotSpeeds_;
double maxSpeed_;
double angle_ = 2*pi / 5;
public:
explicit MovingSectors();
explicit MovingSectors(unsigned int size, double radii[], double rotSpeeds[], sf::Color color = sf::Color::White, double maxSpeed = 200);
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
void update(double timeStep, sf::RenderWindow& window);
};
}