#pragma once #include class NumberRenderer { public: sf::Texture texture; sf::IntRect comma_rect; sf::IntRect numeral_rects[10]; NumberRenderer( sf::Texture _texture, sf::IntRect _comma_rect, std::initializer_list _numeral_rects ); void render(sf::RenderWindow* window, uint number, int x, int y); private: sf::Sprite sprite; };