annotate Platforms/Wasm/WasmViewport.cpp @ 593:6bf8f881fcb5
OpenGLBasicPolylineRenderer
author |
Sebastien Jodogne <s.jodogne@gmail.com> |
date |
Fri, 26 Apr 2019 13:04:56 +0200 |
parents |
092db46c6291 |
children |
4f2416d519b4 |
rev |
line source |
242
|
1 #include "WasmViewport.h"
|
|
2
|
|
3 #include <vector>
|
|
4 #include <memory>
|
|
5
|
|
6 std::vector<std::shared_ptr<OrthancStone::WidgetViewport>> wasmViewports;
|
|
7
|
|
8 void AttachWidgetToWasmViewport(const char* htmlCanvasId, OrthancStone::IWidget* centralWidget) {
|
|
9 std::shared_ptr<OrthancStone::WidgetViewport> viewport(CreateWasmViewportFromCpp(htmlCanvasId));
|
|
10 viewport->SetCentralWidget(centralWidget);
|
|
11
|
|
12 wasmViewports.push_back(viewport);
|
|
13 } |