feat: windows specific import + remove couts

This commit is contained in:
2025-10-04 12:30:42 +02:00
parent 3972553d36
commit 2c4f5fd641

View File

@ -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();
}); });
} }