-
Notifications
You must be signed in to change notification settings - Fork 18
2D game graphics #3
Comments
@kdar that's a hard question! What you are looking for is essentialy this: https://blog.qt.io/blog/2015/05/11/integrating-custom-opengl-rendering-with-qt-quick-via-qquickframebufferobject/. In short, OpenGL context is binded to a certain area in the window, and everything is drawn there, while you can still use qml for other parts of the UI (second example in the linked article perfectly illustrates your use-case), However, although cc @filcuc , he is the author of C bindings that are base of these and a better expert on Qt. |
@kdar @White-Oak |
i filled this one filcuc/dotherside#44 |
Wondering if I could possibly use a qml Canvas, and use signal/slots to draw to it sending over the pixel data. I think I would need qml-rust to support lists for meta types. Not sure what kind of performance I would get from this. [edit] |
I'm currently writing a gameboy emulator and I was debating on using Qt. Just in case you can save me time in my research, is it possible for qml-rust to render 2d graphics maybe using qt3d or opengl? I'm currently using glium and not sure if that can easily be tied into qml-rust.
Thank you!
The text was updated successfully, but these errors were encountered: