1
Graphics / Re: sf::Drawable + constructor, white square
« on: June 06, 2019, 10:41:47 am »QuoteThis is a copy, and you don't define correct copy constructor & assignment operator for your Button class:b = Button();
Right, with initialization works.
common rule is to avoid managing resources (sf::Texture, sf::Font, ...) directly in classes that use them. Or, prevent copy semantics for those classes and manage their instances like true entities.
Thanks for tip.