comparison 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
comparison
equal deleted inserted replaced
616:97926984d5d0 617:7efa2543699d
59 } 59 }
60 60
61 ~PImpl() 61 ~PImpl()
62 { 62 {
63 emscripten_webgl_destroy_context(context_); 63 emscripten_webgl_destroy_context(context_);
64 }
65
66 const std::string& GetCanvasIdentifier() const
67 {
68 return canvas_;
64 } 69 }
65 70
66 void MakeCurrent() 71 void MakeCurrent()
67 { 72 {
68 if (emscripten_webgl_make_context_current(context_) != EMSCRIPTEN_RESULT_SUCCESS) 73 if (emscripten_webgl_make_context_current(context_) != EMSCRIPTEN_RESULT_SUCCESS)
160 void WebAssemblyOpenGLContext::UpdateSize() 165 void WebAssemblyOpenGLContext::UpdateSize()
161 { 166 {
162 assert(pimpl_.get() != NULL); 167 assert(pimpl_.get() != NULL);
163 pimpl_->UpdateSize(); 168 pimpl_->UpdateSize();
164 } 169 }
170
171 const std::string& WebAssemblyOpenGLContext::GetCanvasIdentifier() const
172 {
173 assert(pimpl_.get() != NULL);
174 return pimpl_->GetCanvasIdentifier();
175 }
165 } 176 }
166 } 177 }
167 178
168 #endif 179 #endif