qt-webassembly-examples icon indicating copy to clipboard operation
qt-webassembly-examples copied to clipboard

Add more complex opengl examples

Open blockspacer opened this issue 5 years ago • 2 comments

See https://github.com/blockspacer/imgui-qtquick-wasm-port

Integration of Dear ImGui 1.66b with Qt Quick, works with QT for WebAssembly (ported without utf8 fonts)

Uses #include <QOpenGLContext>

blockspacer avatar Mar 26 '19 06:03 blockspacer

See https://github.com/blockspacer/qtimgui-wasm-port.git

qt for webassembly port of qtimgui (demo-window works) https://github.com/seanchas116/qtimgui (ported without utf8 fonts)

Uses opengl: #include <GLES2/gl2.h>

demo-window works, but demo-widget prints error: QOpenGLWidget is not supported on this platform.

blockspacer avatar Mar 26 '19 08:03 blockspacer

You can apply this patch to enable QOpenGLWidget: https://codereview.qt-project.org/#/c/257158/

Though as stated, the code might not be 100% ported to WebGL yet.

msorvig avatar Mar 26 '19 18:03 msorvig