Skip to content
Snippets Groups Projects
Commit 0cd56c54 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

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.
parent 5d0f9811
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment