view Platforms/Wasm/WasmViewport.cpp @ 1316:7045a0ff32c4 broker

Added DISABLE_STONE_QT_CMAKE_FILE option (Qt5 Win10 builds do not work when QtConfiguration.cmake is included). This is a quick hacky fix.
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 16 Mar 2020 11:21:57 +0100
parents 4f2416d519b4
children
line wrap: on
line source

#include "WasmViewport.h"

#include <vector>
#include <memory>

std::vector<std::shared_ptr<Deprecated::WidgetViewport>> wasmViewports;

void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget) {
    std::shared_ptr<Deprecated::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
    viewport->SetCentralWidget(centralWidget);

    wasmViewports.push_back(viewport);
}