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
|
|
|
|
*
|
2018-06-12 09:24:43 +02:00
|
|
|
* 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"
|
2018-06-23 23:05:36 +02:00
|
|
|
#include "Registry.hpp"
|
2018-12-20 02:51:30 +01:00
|
|
|
#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
|
|
|
|
2018-06-14 02:38:02 +02:00
|
|
|
void init() override;
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2018-06-23 23:05:36 +02:00
|
|
|
private:
|
2018-12-29 23:24:38 +01:00
|
|
|
void initOpenGL();
|
|
|
|
|
2018-12-29 02:23:23 +01:00
|
|
|
KeyboardHandler m_keyboardHandler;
|
|
|
|
|
2018-12-20 02:51:30 +01:00
|
|
|
ScriptEngine m_scriptEngine;
|
2019-01-05 00:27:18 +01:00
|
|
|
|
|
|
|
Registry m_registry;
|
2014-12-15 16:47:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPLICATION_HPP_
|