OpenMiner/include/core/Application.hpp
2018-06-05 01:24:54 +02:00

53 lines
1005 B
C++

/*
* =====================================================================================
*
* Filename: Application.hpp
*
* Description:
*
* Version: 1.0
* Created: 14/12/2014 05:09:11
* Revision: none
* Compiler: gcc
*
* Author: Quentin BAZIN, <quent42340@gmail.com>
* Company:
*
* =====================================================================================
*/
#ifndef APPLICATION_HPP_
#define APPLICATION_HPP_
#include "ApplicationStateStack.hpp"
#include "GameClock.hpp"
#include "Window.hpp"
//#include "ResourceHandler.hpp"
class Application {
public:
Application();
~Application();
void initGL();
void handleEvents();
void run();
Window &window() { return m_window; }
static Application &getInstance() {
static Application instance;
return instance;
}
private:
Window m_window;
GameClock m_clock;
ApplicationStateStack *m_applicationStateStack;
};
#endif // APPLICATION_HPP_