Mercurial > hg > orthanc-stone
view Platforms/Wasm/WasmViewport.cpp @ 894:f557b18d287f
wasm: error log if canvas GL context can't be created
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 16 Jul 2019 10:51:03 +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); }