view Platforms/Wasm/WasmViewport.cpp @ 1123:45df56448b2a

Changed my mind to cover all msvc (after all it's a test)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 05 Nov 2019 18:26:59 +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);
}