Fix up build.

This commit is contained in:
jmsgrogan 2023-01-20 08:07:09 +00:00
parent f26ee2ebc4
commit b5f21900eb
16 changed files with 16 additions and 30 deletions

View file

@ -18,10 +18,10 @@ 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);
auto rect = std::make_unique<RectangleNode>(Transform(Point(10, 10)), 200.0, 200.0);
scene->addNode(rect.get());
auto text_node = std::make_unique<TextNode>("Test2", Point(100, 100));
auto text_node = std::make_unique<TextNode>("Test2", Transform(Point(100, 100)));
scene->addNode(text_node.get());
scene->update();

View file

@ -25,11 +25,11 @@ TEST_CASE(TestDirectXRendering, "graphics")
auto scene = drawing_context->getScene();
auto mesh = MeshPrimitives::buildRectangleAsTriMesh();
auto mesh_node = std::make_unique<MeshNode>(DiscretePoint(0, 0));
auto mesh_node = std::make_unique<MeshNode>(Transform(DiscretePoint(0, 0)));
mesh_node->setMesh(mesh.get());
scene->addNode(mesh_node.get());
auto text_node = std::make_unique<TextNode>("Test", DiscretePoint(100, 100));
auto text_node = std::make_unique<TextNode>("Test", Transform(DiscretePoint(100, 100)));
scene->addNode(text_node.get());
scene->update();