diff Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp @ 1591:5887a4f8594b

moving platform-specific files out of the "OrthancStone" folder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 23 Oct 2020 13:15:03 +0200
parents 4cfdaf4ef3fe
children 4fb8fdf03314
line wrap: on
line diff
--- a/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp	Thu Oct 22 18:39:03 2020 +0200
+++ b/Applications/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp	Fri Oct 23 13:15:03 2020 +0200
@@ -21,9 +21,11 @@
 
 #include "SingleFrameViewerApplication.h"
 
-#include "../../../../OrthancStone/Sources/Loaders/WebAssemblyLoadersContext.h"
 #include "../../../../OrthancStone/Sources/StoneException.h"
 #include "../../../../OrthancStone/Sources/StoneInitialization.h"
+#include "../../../Platforms/WebAssembly/WebGLViewport.h"
+#include "../../../Platforms/WebAssembly/WebAssemblyLoadersContext.h"
+#include "../../../Platforms/WebAssembly/WebGLViewportsRegistry.h"
 
 #include <Compatibility.h>  // For std::unique_ptr<>
 #include <Toolbox.h>
@@ -114,12 +116,13 @@
                                         "Only one single viewport is available for this application");
       }
 
-      boost::shared_ptr<OrthancStone::WebGLViewport> viewport(OrthancStone::GetWebGLViewportsRegistry().Add(canvasId));
+      boost::shared_ptr<OrthancStone::WebGLViewport> viewport(
+        OrthancStone::WebGLViewportsRegistry::GetGlobalRegistry().Add(canvasId));
       application_ = OrthancStone::Application::Create(*context_, viewport);
 
       {
         OrthancStone::WebGLViewportsRegistry::Accessor accessor(
-          OrthancStone::GetWebGLViewportsRegistry(), canvasId);
+          OrthancStone::WebGLViewportsRegistry::GetGlobalRegistry(), canvasId);
 
         if (accessor.IsValid())
         {