2021-04-08 15:34:03 +02:00
|
|
|
#ifndef TIMELINE_H
|
|
|
|
#define TIMELINE_H
|
|
|
|
|
2021-06-09 20:08:58 +02:00
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
2021-04-08 15:34:03 +02:00
|
|
|
#include <SFML/Config.hpp>
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
using microsec = sf::Int64;
|
|
|
|
|
2021-06-07 20:19:58 +02:00
|
|
|
class Timeline
|
2021-04-08 15:34:03 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-06-07 20:19:58 +02:00
|
|
|
virtual ~Timeline() = default;
|
2021-04-08 15:34:03 +02:00
|
|
|
|
2021-06-08 20:32:36 +02:00
|
|
|
virtual void update() = 0;
|
2021-06-11 18:58:44 +02:00
|
|
|
virtual void run() = 0;
|
2021-06-07 20:19:58 +02:00
|
|
|
virtual void clear() = 0;
|
2021-06-08 20:32:36 +02:00
|
|
|
|
|
|
|
virtual microsec currentMusicOffset() const = 0;
|
2021-06-09 20:08:58 +02:00
|
|
|
virtual void drawVisibleNotes(sf::RenderWindow& window) const = 0;
|
2021-04-08 15:34:03 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TIMELINE_H
|