This commit is contained in:
IlyaShurupov 2024-03-19 11:52:22 +03:00 committed by Ilya Shurupov
parent 84046e89be
commit 25fd52294f
4 changed files with 26 additions and 38 deletions

View file

@ -1,13 +1,14 @@
#include "ExampleGUI.hpp"
#include "Window.hpp"
#include "Graphics.hpp"
using namespace tp;
void runApp() {
auto window = tp::Window::createWindow(800, 600, "Window 1");
auto window = tp::Window::createWindow({ 800, 600 }, "Window 1");
tp::ComplexWidget<tp::Window::Events, tp::Graphics::Canvas> gui;
tp::ComplexWidget<tp::EventHandler, tp::Canvas> gui;
if (window) {
while (!window->shouldClose()) {