diff --git a/src/graphics/components/InputComponent.h b/src/graphics/components/InputComponent.h index bcc47067f3229488d82c6a418ea40ffb3afc0275..3e7a7b5273e2f77b6cba14cf680fd1a456615794 100644 --- a/src/graphics/components/InputComponent.h +++ b/src/graphics/components/InputComponent.h @@ -5,6 +5,9 @@ #include <string> #include "BoxComponent.h" #include "TextComponent.h" +#include "../opengl/Window.h" + +class Window; class InputComponent : public BoxComponent { public: @@ -22,6 +25,8 @@ public: std::function<void(std::string value)> onEnter = nullptr; // needed for our shader's resizing int lastRenderedWindowHeight; + // handle to signal that a redraw is needed, and access to shader programs + Window *win; }; #endif