Why Does The Canvas Id On HTML Page Have To Be `canvas` For VTK WebAssembly?

I got the following error information on the web page if I change the id of canvas to be ‘canvas1’. The function USDL2OpenGLRenderWindow::CreateAWindow is similar to vtkSDL2OpenGLRenderWindow::CreateAWindow. We can read VTK and SDL library source code and find these code snippets. File: video\emscripten\SDL_emscriptenvideo.c device->CreateSDLWindow = Emscripten_CreateWindow; static int Emscripten_CreateWindow(_THIS, SDL_Window Read more…

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X