Mercurial > hg > orthanc-stone
changeset 756:46403ab629f6
Added broker back because the ViewportController needs one
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 22 May 2019 16:46:02 +0200 |
parents | 4a3b96630e6c |
children | 8c97c381f242 |
files | Samples/WebAssembly/BasicScene.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Samples/WebAssembly/BasicScene.cpp Wed May 22 16:17:32 2019 +0200 +++ b/Samples/WebAssembly/BasicScene.cpp Wed May 22 16:46:02 2019 +0200 @@ -158,7 +158,7 @@ void SetupEvents(const std::string& canvas); public: - WebAssemblyViewport(const std::string& canvas) : + WebAssemblyViewport(MessageBroker& broker, const std::string& canvas) : context_(canvas), controller_(make_shared<ViewportController>(broker)), compositor_(context_, *controller_->GetScene()) @@ -380,6 +380,7 @@ std::auto_ptr<OrthancStone::WebAssemblyViewport> viewport1_; std::auto_ptr<OrthancStone::WebAssemblyViewport> viewport2_; std::auto_ptr<OrthancStone::WebAssemblyViewport> viewport3_; +OrthancStone::MessageBroker broker_; EM_BOOL OnWindowResize( int eventType, const EmscriptenUiEvent *uiEvent, void *userData)