More cleaning

This commit is contained in:
James Grogan 2022-11-11 11:48:42 +00:00
parent 02ebb9a54b
commit 6adc441e6f
37 changed files with 213 additions and 181 deletions

View file

@ -1,9 +1,8 @@
#include "DesktopManager.h"
#include "XcbInterface.h"
#include "TestCase.h"
#include "TestCaseRunner.h"
#include "GuiApplication.h"
#include <memory>
#include <string>
#include <iostream>
@ -13,18 +12,11 @@ class TestOpenGlRendering : public TestCase
public:
bool Run() override
{
auto desktopManager = DesktopManager::Create();
auto app = std::make_unique<GuiApplication>();
auto mainWindow = desktopManager->GetWindowManager()->GetMainWindow();
mainWindow->SetSize(800, 600);
XcbInterface window_interface(desktopManager.get());
window_interface.setUseHardwareRendering(true);
window_interface.initialize();
window_interface.addWindow(mainWindow);
window_interface.showWindow(mainWindow);
window_interface.loop();
window_interface.shutDown();
//app->setUiInterfaceBackend(UiInterfaceFactory::Backend::X11);
app->setUiInterfaceBackend(UiInterfaceFactory::Backend::X11_RASTER);
app->run();
return true;
}