OpenMiner/include/states/PauseMenuState.hpp

44 lines
994 B
C++
Raw Normal View History

/*
* =====================================================================================
*
* Filename: PauseMenuState.hpp
*
* Description:
*
* Created: 28/06/2018 10:14:02
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef PAUSEMENUSTATE_HPP_
#define PAUSEMENUSTATE_HPP_
2018-12-29 02:23:23 +01:00
#include <gk/core/ApplicationState.hpp>
#include <gk/gl/Shader.hpp>
#include <gk/gui/RectangleShape.hpp>
#include "MenuWidget.hpp"
2018-12-29 02:23:23 +01:00
class PauseMenuState : public gk::ApplicationState {
public:
2018-12-29 02:23:23 +01:00
PauseMenuState(gk::ApplicationState *parent = nullptr);
void onEvent(const SDL_Event &event) override;
void update() override;
private:
2018-12-29 02:23:23 +01:00
void draw(gk::RenderTarget &target, gk::RenderStates states) const override;
2018-06-29 06:26:57 +02:00
MenuWidget m_menuWidget{1, 3};
2018-12-29 02:23:23 +01:00
gk::Shader m_shader;
glm::mat4 m_projectionMatrix;
2018-12-29 02:23:23 +01:00
gk::RectangleShape m_background;
};
#endif // PAUSEMENUSTATE_HPP_