/* * ===================================================================================== * * Filename: GameState.hpp * * Description: * * Created: 15/12/2014 03:51:32 * * Author: Quentin Bazin, * * ===================================================================================== */ #ifndef GAMESTATE_HPP_ #define GAMESTATE_HPP_ #include #include #include #include "Config.hpp" #include "HUD.hpp" #include "Player.hpp" #include "Skybox.hpp" #include "World.hpp" class GameState : public gk::ApplicationState { public: GameState(); void onEvent(const SDL_Event &event) override; void update() override; private: void initShaders(); void draw(gk::RenderTarget &target, gk::RenderStates states) const override; gk::Shader m_shader; Skybox m_skybox; World m_world; gk::Camera m_camera{FOV, DIST_NEAR, DIST_FAR}; Player m_player{m_camera}; HUD m_hud{m_player, m_world}; }; #endif // GAMESTATE_HPP_