OpenMiner/include/states/GameState.hpp

51 lines
917 B
C++

/*
* =====================================================================================
*
* Filename: GameState.hpp
*
* Description:
*
* Created: 15/12/2014 03:51:32
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#ifndef GAMESTATE_HPP_
#define GAMESTATE_HPP_
#include <glm/glm.hpp>
#include "ApplicationState.hpp"
#include "Camera.hpp"
#include "Skybox.hpp"
#include "World.hpp"
class GameState : public ApplicationState {
public:
GameState();
void update();
void draw();
void drawSelectedBlock();
void drawCross();
void findSelectedBlock(bool useDepthBuffer);
private:
glm::mat4 m_projectionMatrix;
glm::mat4 m_viewMatrix;
Camera &m_camera;
Shader m_shader;
Skybox m_skybox;
World m_world;
GLuint m_cursorVBO;
};
#endif // GAMESTATE_HPP_