More cleaning
This commit is contained in:
parent
02ebb9a54b
commit
6adc441e6f
37 changed files with 213 additions and 181 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue