// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #include "instancebuffer.h" #include #include #include #include #include int main(int argc, char* argv[]) { QGuiApplication app(argc, argv); Qt3DExtras::Quick::Qt3DQuickWindow view; InstanceBuffer buffer; view.engine()->qmlEngine()->rootContext()->setContextProperty("_instanceBuffer", &buffer); view.setSource(QUrl("qrc:/main.qml")); view.show(); return app.exec(); }