project-kyoku/include/timeline.h

24 lines
457 B
C
Raw Normal View History

#ifndef TIMELINE_H
#define TIMELINE_H
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Config.hpp>
#include <memory>
using microsec = sf::Int64;
2021-06-07 14:19:58 -04:00
class Timeline
{
public:
2021-06-07 14:19:58 -04:00
virtual ~Timeline() = default;
2021-06-08 14:32:36 -04:00
virtual void update() = 0;
2021-06-07 14:19:58 -04:00
virtual void init() = 0;
virtual void clear() = 0;
2021-06-08 14:32:36 -04:00
virtual microsec currentMusicOffset() const = 0;
virtual void drawVisibleNotes(sf::RenderWindow& window) const = 0;
};
#endif // TIMELINE_H