OpenMiner/include/states/GameState.hpp

48 lines
880 B
C++
Raw Normal View History

2014-12-15 16:47:30 +01:00
/*
* =====================================================================================
*
* Filename: GameState.hpp
*
* Description:
*
* Version: 1.0
* Created: 15/12/2014 03:51:32
* Revision: none
* Compiler: gcc
*
* Author: Quentin BAZIN, <quent42340@gmail.com>
* Company:
*
* =====================================================================================
*/
#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"
#include "World.hpp"
2014-12-15 16:47:30 +01:00
class GameState : public ApplicationState {
public:
GameState();
~GameState();
void update();
void draw();
private:
2014-12-18 07:02:48 +01:00
glm::mat4 m_projectionMatrix;
glm::mat4 m_viewMatrix;
Camera m_camera;
2014-12-15 16:47:30 +01:00
Shader m_shader;
2014-12-18 07:02:48 +01:00
World m_world;
2014-12-15 16:47:30 +01:00
};
#endif // GAMESTATE_HPP_