OpenMiner/include/core/Application.hpp

40 lines
842 B
C++
Raw Normal View History

2014-12-15 16:47:30 +01:00
/*
* =====================================================================================
*
* Filename: Application.hpp
*
2018-06-05 01:24:54 +02:00
* Description:
2014-12-15 16:47:30 +01:00
*
* Created: 14/12/2014 05:09:11
*
* Author: Quentin Bazin, <quent42340@gmail.com>
2014-12-15 16:47:30 +01:00
*
* =====================================================================================
*/
#ifndef APPLICATION_HPP_
#define APPLICATION_HPP_
2018-12-29 02:23:23 +01:00
#include <gk/core/CoreApplication.hpp>
#include "KeyboardHandler.hpp"
#include "Registry.hpp"
#include "ScriptEngine.hpp"
2014-12-15 16:47:30 +01:00
2018-12-29 02:23:23 +01:00
class Application : public gk::CoreApplication {
2014-12-15 16:47:30 +01:00
public:
2018-12-29 02:23:23 +01:00
Application(int argc, char **argv) : gk::CoreApplication(argc, argv) {}
2018-06-05 01:24:54 +02:00
void init() override;
2018-06-05 01:24:54 +02:00
private:
2018-12-29 23:24:38 +01:00
void initOpenGL();
2018-12-29 02:23:23 +01:00
KeyboardHandler m_keyboardHandler;
ScriptEngine m_scriptEngine;
Registry m_registry;
2014-12-15 16:47:30 +01:00
};
#endif // APPLICATION_HPP_