project-kyoku/timelineviews/classicviewmanager.cpp

29 lines
650 B
C++
Raw Normal View History

2021-04-15 17:03:35 +02:00
#include "classicviewmanager.h"
#include "../note.h"
#include <SFML/Graphics/RectangleShape.hpp>
static constexpr std::size_t RESERVED_SIZE = 20;
ClassicViewManager::ClassicViewManager()
{
for (std::size_t i = ARROW_UP; i < AMOUNT_OF_KINDS; ++i)
{
SpritePoll &poll = _sprite_dispatcher.at(i);
poll.reserve(RESERVED_SIZE);
for (auto &sprite : poll)
{
}
}
}
std::shared_ptr<Sprite> ClassicViewManager::createSprite(Button kind_of_button) const
{
auto sprite = std::make_shared<sf::RectangleShape>();
sprite->setSize({20.f, 20.f});
switch (kind_of_button)
{
return
}
}