2022-05-18 07:42:44 +00:00
|
|
|
#include "WaylandWindowInterface.h"
|
|
|
|
|
|
|
|
#include "Window.h"
|
2022-11-10 10:48:22 +00:00
|
|
|
#include "FileLogger.h"
|
2022-05-18 07:42:44 +00:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2022-11-10 10:48:22 +00:00
|
|
|
FileLogger::GetInstance().Open();
|
|
|
|
|
|
|
|
WaylandWindowInterface window_interface;
|
|
|
|
window_interface.connect();
|
2022-05-18 07:42:44 +00:00
|
|
|
|
2022-11-10 10:48:22 +00:00
|
|
|
auto window = mt::Window::Create();
|
|
|
|
window->SetSize(800, 600);
|
2022-05-18 07:42:44 +00:00
|
|
|
|
2022-11-10 10:48:22 +00:00
|
|
|
window_interface.addWindow(window.get());
|
2022-05-18 07:42:44 +00:00
|
|
|
|
2022-11-10 10:48:22 +00:00
|
|
|
window_interface.mapWindow(window.get());
|
2022-05-18 07:42:44 +00:00
|
|
|
|
2022-11-10 10:48:22 +00:00
|
|
|
window_interface.run();
|
2022-05-18 07:42:44 +00:00
|
|
|
|
2022-11-10 10:48:22 +00:00
|
|
|
window_interface.disconnect();
|
|
|
|
return 0;
|
2022-05-18 07:42:44 +00:00
|
|
|
}
|