WindowEvents

This commit is contained in:
2025-04-19 15:08:39 -05:00
parent 600d0f3c81
commit 87afa3a0ec
5 changed files with 289 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
#ifndef WINDOW_H
#define WINDOW_H
#include "WindowEvents.h"
#include "utils/Renderer/Renderer.h"
#include "WindowGLFW/WindowGLFW.h"
@@ -11,7 +12,7 @@ namespace Archimedes {
public:
Window() {}
Window(const std::function<void(Event*)>& sendEventFn) : window(this, sendEventFn) {}
~Window() {}
@@ -19,7 +20,7 @@ namespace Archimedes {
void doFrame() {
window.pollEvents();
//window.pollEvents();
window.getSize(renderer->w, renderer->h);