stuff-from-scratch/test/graphics/TestOpenGlRendering.cpp
2022-11-11 11:48:42 +00:00

32 lines
685 B
C++

#include "TestCase.h"
#include "TestCaseRunner.h"
#include "GuiApplication.h"
#include <memory>
#include <string>
#include <iostream>
class TestOpenGlRendering : public TestCase
{
public:
bool Run() override
{
auto app = std::make_unique<GuiApplication>();
//app->setUiInterfaceBackend(UiInterfaceFactory::Backend::X11);
app->setUiInterfaceBackend(UiInterfaceFactory::Backend::X11_RASTER);
app->run();
return true;
}
};
int main()
{
TestCaseRunner runner;
runner.AddTestCase("TestOpenGlRendering", std::make_unique<TestOpenGlRendering>());
const auto testsPassed = runner.Run();
return testsPassed ? 0 : -1;
}