project-kyoku/include/gui/state.h

17 lines
374 B
C++

#pragma once
#include <stack>
#include <memory>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/Drawable.hpp>
class GUIState : public sf::Drawable
{
public:
virtual ~GUIState() = default;
virtual void input(const sf::Event& event) = 0;
virtual void update() = 0;
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const = 0;
};