WindowEvents
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user