Fix view proxy render window name#3552
Conversation
finetjul
left a comment
There was a problem hiding this comment.
Can you please explain why the name of the variable is problem ?
Why not keeping it protected? (with the _ prefix in the name)
It's not the name directly but the setMacro, there were error thrown due to getApiSpecificRenderWindow not being found. I removed the '_' to uniformize with other variables but if there is a reason to leave it, I'll put it back. |
Your commit message should not be "replace openGLRenderWindow by apiSpecificRenderWindow" because
but instead "fix(ViewProxy): add missing function getApiSpecificRenderWindow()" (or something similar). |
Modify OpenGL and WebGPU RenderWindow setSize method so that it can accept both an array or 2 arguments
7e5714f to
02cf35c
Compare
Context
ProxyManager example did not work.
Results
The example is fixed and ViewProxy uses apiSpecificRenderWindow instead of _openGLRenderWindow
Changes
Replace model._openGLRenderWindow by model.apiSpecificRenderWindow in ViewProxy
Fixed argument of render windows' setSize in ProxyManager example
PR and Code Checklist
npm run reformatto have correctly formatted code