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