scenepic/test/frame2d.cpp

19 строки
402 B
C++
Исходник Обычный вид История

2021-10-04 17:56:28 +03:00
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "scene.h"
#include "scenepic_tests.h"
int test_frame2d()
{
int result = EXIT_SUCCESS;
2021-10-04 17:56:28 +03:00
scenepic::Scene scene;
auto canvas2d = scene.create_canvas_2d();
auto frame2d = canvas2d->create_frame();
frame2d->add_circle(0, 0, 5.0);
2021-10-04 17:56:28 +03:00
test::assert_equal(frame2d->to_json(), "frame2d", result);
2021-10-04 17:56:28 +03:00
return result;
2021-10-04 17:56:28 +03:00
}