view Platforms/Wasm/WasmViewport.cpp @ 1010:efe1c44628a1 toa2019092003

Fixed mysterious revert of a previous change + converted a .cpp to unix LF
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 20 Sep 2019 12:41:06 +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);
}