24 lines
No EOL
571 B
C++
24 lines
No EOL
571 B
C++
#include "TestUiApplication.h"
|
|
#include "TestFramework.h"
|
|
|
|
#include "RectangleNode.h"
|
|
#include "TextNode.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <iostream>
|
|
|
|
TEST_CASE(TestD2dRendering, "graphics")
|
|
{
|
|
auto gui_app = TestCaseRunner::getInstance().getTestApplication();
|
|
auto scene = gui_app->getMainWindowScene();
|
|
|
|
auto rect = std::make_unique<RectangleNode>(Point(10, 10), 200.0, 200.0);
|
|
scene->addNode(rect.get());
|
|
|
|
auto text_node = std::make_unique<TextNode>("Test2", Point(100, 100));
|
|
scene->addNode(text_node.get());
|
|
|
|
scene->update();
|
|
gui_app->run();
|
|
}; |