OpenMiner/include/states/GameState.hpp

45 lines
798 B
C++
Raw Normal View History

2014-12-15 16:47:30 +01:00
/*
* =====================================================================================
*
* Filename: GameState.hpp
*
2018-06-05 01:24:54 +02:00
* Description:
2014-12-15 16:47:30 +01:00
*
* Created: 15/12/2014 03:51:32
*
* Author: Quentin BAZIN, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef GAMESTATE_HPP_
#define GAMESTATE_HPP_
2014-12-18 07:02:48 +01:00
#include <glm/glm.hpp>
2014-12-15 16:47:30 +01:00
#include "ApplicationState.hpp"
2014-12-18 07:02:48 +01:00
#include "Camera.hpp"
2014-12-26 00:39:10 +01:00
#include "Skybox.hpp"
2014-12-18 07:02:48 +01:00
#include "World.hpp"
2014-12-15 16:47:30 +01:00
class GameState : public ApplicationState {
public:
GameState();
2018-06-05 01:24:54 +02:00
2014-12-15 16:47:30 +01:00
void update();
2018-06-05 01:24:54 +02:00
2014-12-15 16:47:30 +01:00
void draw();
2018-06-05 01:24:54 +02:00
2014-12-15 16:47:30 +01:00
private:
2014-12-18 07:02:48 +01:00
glm::mat4 m_projectionMatrix;
glm::mat4 m_viewMatrix;
2018-06-05 01:24:54 +02:00
2014-12-26 00:39:10 +01:00
Camera &m_camera;
2018-06-05 01:24:54 +02:00
2014-12-15 16:47:30 +01:00
Shader m_shader;
2018-06-05 01:24:54 +02:00
2014-12-26 00:39:10 +01:00
Skybox m_skybox;
2014-12-18 07:02:48 +01:00
World m_world;
2014-12-15 16:47:30 +01:00
};
#endif // GAMESTATE_HPP_