Simple dx examples working.
This commit is contained in:
parent
e0cad34d55
commit
850bd6906f
4 changed files with 18 additions and 16 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "DesktopManager.h"
|
||||
#include "MeshPrimitives.h"
|
||||
#include "MeshNode.h"
|
||||
#include "TextNode.h"
|
||||
#include "Scene.h"
|
||||
#include "Widget.h"
|
||||
|
||||
|
@ -25,10 +26,12 @@ TEST_CASE(TestDirectXRendering, "graphics")
|
|||
|
||||
auto mesh = MeshPrimitives::buildRectangleAsTriMesh();
|
||||
auto mesh_node = std::make_unique<MeshNode>(DiscretePoint(0, 0));
|
||||
|
||||
mesh_node->setMesh(mesh.get());
|
||||
|
||||
scene->addNode(mesh_node.get());
|
||||
|
||||
auto text_node = std::make_unique<TextNode>("Test", DiscretePoint(100, 100));
|
||||
scene->addNode(text_node.get());
|
||||
|
||||
scene->update(nullptr);
|
||||
gui_app->run();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue