Compare commits
2 Commits
e8057c97ff
...
2c4f5fd641
Author | SHA1 | Date | |
---|---|---|---|
2c4f5fd641 | |||
3972553d36 |
@ -2,6 +2,7 @@
|
|||||||
#define EVENT_H_
|
#define EVENT_H_
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <algorithm>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <typeindex>
|
#include <typeindex>
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include "renderer/engine.h"
|
#include "renderer/engine.h"
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
#include <corecrt_math_defines.h>
|
#include <corecrt_math_defines.h>
|
||||||
|
#endif
|
||||||
#include <GL/glew.h>
|
#include <GL/glew.h>
|
||||||
#include <glm/ext/matrix_clip_space.hpp>
|
#include <glm/ext/matrix_clip_space.hpp>
|
||||||
#include <glm/ext/matrix_transform.hpp>
|
#include <glm/ext/matrix_transform.hpp>
|
||||||
@ -20,12 +22,10 @@ Engine::Engine() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
m_window->subscribe<WindowResized>([this](const WindowResized& e) {
|
m_window->subscribe<WindowResized>([this](const WindowResized& e) {
|
||||||
std::cout << "ENGINE: Window just resized" << std::endl;
|
|
||||||
HandleWindowResized(e);
|
HandleWindowResized(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
m_window->subscribe<WindowCloseRequested>([this](const WindowCloseRequested& e) {
|
m_window->subscribe<WindowCloseRequested>([this](const WindowCloseRequested& e) {
|
||||||
std::cout << "ENGINE: Window closed" << std::endl;
|
|
||||||
Stop();
|
Stop();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user