News for hackers. Stuff that matters.
Re:Rust Qt Binding Generator by oever on Friday May 18, 2018 @01:22PM (#17103199)
By default Qt renders with OpenGL. You can talk to OpenGL via the Qt APIs. You can provide application logic in Rust, but the actual GUI is still written en C++ or QML.

You can use Qt 3D for a UI with Rust logic. Writing a 3d scene with the declarative QML language is nice. Or you do this with your favorite text editor or Qt 3D Studio.

http://blog.qt.io/blog/category/qt-3d/

Re:Rust Qt Binding Generator by monocasa on Friday May 18, 2018 @01:43PM (#17103384)
I guess I meant, how difficult is it to have a OpenGL component with relatively arbitrary OpenGL commands issued from Rust. I don't really care if the buttons are rendered in OpenGL or not, but I need an OpenGL pane inside a normal GUI. Imagine a Rust CAD application with a QT GUI.

QT-3D doesn't really fit my use case unfortunately.

Re:Rust Qt Binding Generator by oever on Friday May 18, 2018 @02:36PM (#17103837)
RQBG does not generate bindings for that, but you could derive from QOpenGLWidget and write FFI to call into Rust for painting and resizing. Then you'd use Glium to do the painting. You can still use RQBG for the application logic.

http://doc.qt.io/qt-5/qopenglwidget.html#context

https://github.com/glium/glium

Re:Rust Qt Binding Generator by monocasa on Friday May 18, 2018 @05:35PM (#17105141)
Word, thanks!