Use pointers for the stuff so it can lazy load.
This commit is contained in:
parent
f5f8cdba37
commit
10ecf50bc0
2 changed files with 9 additions and 20 deletions
|
@ -51,10 +51,6 @@ class SFMLBackend {
|
|||
sf::RenderWindow window;
|
||||
std::shared_ptr<sf::Sprite> face_sprite = nullptr;
|
||||
std::shared_ptr<sf::Texture> face_texture = nullptr;
|
||||
std::shared_ptr<sf::Sprite> stop_button = nullptr;
|
||||
std::shared_ptr<sf::Texture> stop_texture = nullptr;
|
||||
std::shared_ptr<sf::Sprite> start_button = nullptr;
|
||||
std::shared_ptr<sf::Texture> start_texture = nullptr;
|
||||
std::chrono::time_point<std::chrono::system_clock> clock_start;
|
||||
Button buttons = Button::STOP;
|
||||
int hit_points = 50;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue