diff Framework/OpenGL/WebAssemblyOpenGLContext.cpp @ 617:7efa2543699d

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2019 18:21:59 +0200
parents 97926984d5d0
children 0aff28f15ea2
line wrap: on
line diff
--- a/Framework/OpenGL/WebAssemblyOpenGLContext.cpp	Thu May 02 13:27:41 2019 +0200
+++ b/Framework/OpenGL/WebAssemblyOpenGLContext.cpp	Thu May 02 18:21:59 2019 +0200
@@ -63,6 +63,11 @@
         emscripten_webgl_destroy_context(context_);
       }
 
+      const std::string& GetCanvasIdentifier() const
+      {
+        return canvas_;
+      }
+
       void MakeCurrent()
       {
         if (emscripten_webgl_make_context_current(context_) != EMSCRIPTEN_RESULT_SUCCESS)
@@ -162,6 +167,12 @@
       assert(pimpl_.get() != NULL);
       pimpl_->UpdateSize();
     }
+
+    const std::string& WebAssemblyOpenGLContext::GetCanvasIdentifier() const
+    {
+      assert(pimpl_.get() != NULL);
+      return pimpl_->GetCanvasIdentifier();
+    }
   }
 }