comparison Deprecated/Platforms/Wasm/WasmViewport.cpp @ 1400:419d0320c344

moved Platforms into Deprecated
author Alain Mazy <alain@mazy.be>
date Wed, 29 Apr 2020 20:45:14 +0200
parents Platforms/Wasm/WasmViewport.cpp@4f2416d519b4
children 828a9b4ee1b7
comparison
equal deleted inserted replaced
1399:ff8d2e46ac63 1400:419d0320c344
1 #include "WasmViewport.h"
2
3 #include <vector>
4 #include <memory>
5
6 std::vector<std::shared_ptr<Deprecated::WidgetViewport>> wasmViewports;
7
8 void AttachWidgetToWasmViewport(const char* htmlCanvasId, Deprecated::IWidget* centralWidget) {
9 std::shared_ptr<Deprecated::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
10 viewport->SetCentralWidget(centralWidget);
11
12 wasmViewports.push_back(viewport);
13 }