-
- Downloads
Add wrapped wasm example using web worker and vtkAlgorithm abort
- This example adds on the AsyncClipper example by demonstrating how one might use embind and web workers. - The main difference is that with embind, there is no `main(int, char**)` function and the entire application is driven from javascript. - This example shows in detail how to create a pthread and transfer the canvas offscreen so that the new web worker can render into it. In the `AsyncClipper`, we used `-sPROXY_TO_PTHREAD` link flag which did all the tasks necessary to run our `main(int, char**)` on a new web worker.
Showing
- Examples/Emscripten/Cxx/WrappedAsyncClipper/CMakeLists.txt 149 additions, 0 deletionsExamples/Emscripten/Cxx/WrappedAsyncClipper/CMakeLists.txt
- Examples/Emscripten/Cxx/WrappedAsyncClipper/README.md 35 additions, 0 deletionsExamples/Emscripten/Cxx/WrappedAsyncClipper/README.md
- Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.cxx 314 additions, 0 deletions...mscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.cxx
- Examples/Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.h 115 additions, 0 deletions.../Emscripten/Cxx/WrappedAsyncClipper/WrappedAsyncClipper.h
- Examples/Emscripten/Cxx/WrappedAsyncClipper/index.html 171 additions, 0 deletionsExamples/Emscripten/Cxx/WrappedAsyncClipper/index.html
- Examples/Emscripten/Cxx/WrappedAsyncClipper/server.py 43 additions, 0 deletionsExamples/Emscripten/Cxx/WrappedAsyncClipper/server.py
Loading
Please register or sign in to comment