D2d offscreen rendering finish up.
This commit is contained in:
parent
8c814ce89f
commit
c63138c455
32 changed files with 288 additions and 64 deletions
|
@ -18,13 +18,14 @@
|
|||
TEST_CASE(TestD2dOffScreenRendering, "graphics")
|
||||
{
|
||||
auto surface = std::make_unique<DrawingSurface>();
|
||||
surface->setSize(100, 100);
|
||||
surface->setSize(800, 800);
|
||||
|
||||
auto drawing_context = std::make_unique<DrawingContext>(surface.get());
|
||||
|
||||
auto rect = std::make_unique<RectangleNode>(DiscretePoint(10, 10), 10.0, 20.0);
|
||||
auto rect = std::make_unique<RectangleNode>(Point(10, 10), 200.0, 200.0);
|
||||
|
||||
auto scene = surface->getScene();
|
||||
//scene->setBackgroundColor(Color(100, 100, 0));
|
||||
scene->addNode(rect.get());
|
||||
|
||||
drawing_context->paint();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue