Mercurial > hg > orthanc-stone
view Platforms/Wasm/WasmViewport.cpp @ 773:b8dfd966b5f4
FloatTextureSceneLayer::SetInverted()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 May 2019 13:44:34 +0200 |
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); }