19 lines
No EOL
456 B
C++
19 lines
No EOL
456 B
C++
#include "TestFramework.h"
|
|
#include "TestUtils.h"
|
|
#include "TestRenderUtils.h"
|
|
|
|
#include "RectangleNode.h"
|
|
|
|
|
|
TEST_CASE(TestD2dOffScreenRendering, "graphics")
|
|
{
|
|
TestRenderer renderer(800, 800);
|
|
|
|
auto rect = std::make_unique<RectangleNode>(Point(10, 10), 200.0, 200.0);
|
|
|
|
auto scene = renderer.getScene();
|
|
//scene->setBackgroundColor(Color(100, 100, 0));
|
|
scene->addNode(rect.get());
|
|
|
|
renderer.write(TestUtils::getTestOutputDir(__FILE__) / "out.png");
|
|
}; |