More cleaning
This commit is contained in:
parent
02ebb9a54b
commit
6adc441e6f
37 changed files with 213 additions and 181 deletions
|
@ -3,27 +3,18 @@
|
|||
#include "Window.h"
|
||||
#include "FileLogger.h"
|
||||
|
||||
#include "DesktopManager.h"
|
||||
#include "GuiApplication.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
FileLogger::GetInstance().Open();
|
||||
|
||||
auto desktop_manager = DesktopManager::Create();
|
||||
auto app = std::make_unique<GuiApplication>();
|
||||
|
||||
auto window = desktop_manager->GetWindowManager()->GetMainWindow();
|
||||
window->SetSize(800, 600);
|
||||
//app->setUiInterfaceBackend(UiInterfaceFactory::Backend::WAYLAND);
|
||||
app->setUiInterfaceBackend(UiInterfaceFactory::Backend::WAYLAND_RASTER);
|
||||
|
||||
WaylandInterface window_interface(desktop_manager.get());
|
||||
window_interface.setUseHardwareRendering(true);
|
||||
window_interface.initialize();
|
||||
app->run();
|
||||
|
||||
window_interface.addWindow(window);
|
||||
|
||||
window_interface.showWindow(window);
|
||||
|
||||
window_interface.loop();
|
||||
|
||||
window_interface.shutDown();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue